 
     if event.which is AC.Keys.shift
       if @mouseState.leftButton
+        @lockedCoordinate null
         @drawStraight true
         
       else

    layerOrigin =
      x: layer?.origin?.x or 0
      y: layer?.origin?.y or 0

    for absolutePixel in @pixels()
      absoluteCoordinates = _.pick absolutePixel, ['x', 'y']
      @lastPixelCoordinates absoluteCoordinates
      @lastStrokeCoordinates absoluteCoordinates
      
      # Create the new pixel in relative coordinates.
      pixel = _.clone absolutePixel
      pixel.x -= layerOrigin.x
      pixel.y -= layerOrigin.y
        


    # End stroke.
    @lastStrokeCoordinates null

    @drawStraight false

  applyPencil: ->
    return unless @mouseState.leftButton
