   hook 'keydown', 0, (event, state) ->
     if event.which in command_modifiers
       unless @textFocus?
+        x = document.body.scrollLeft
+        y = document.body.scrollTop
         @copyPasteInput.focus()
+        window.scrollTo(x, y)
+
         if @lassoSegment?
           @copyPasteInput.value = @lassoSegment.stringify(@mode.empty)
         @copyPasteInput.setSelectionRange 0, @copyPasteInput.value.length

    else return null

  hook 'mousedown', 10, ->
    @dropletElement.focus()

  # UNDO STACK SUPPORT
  # ================================

      )

      rect = @wrapperElement.getBoundingClientRect()

      @dragCanvas.style.top = "#{position.y - rect.top}px"
      @dragCanvas.style.left = "#{position.x - rect.left}px"
