               @keyQueue = ""
               @selection = window.getSelection()
 
-              # If there's matching a command *and* a matching movement, then choose the command.
               if @commands[keyChar]
                 @commands[keyChar].call @
                 @scrollIntoView()

      if @alterMethod == "move" and not locked
        locked = true
        @paste (text) =>
          result = func()
          @copy text
          locked = false
          result

      underEditMode: false
    super extend defaults, options

    extend @commands, "y": @yank

    if @options.underEditMode
      extend @commands,
        "d": @yank
        "c": -> @yank(); enterInsertMode()

class VisualModeForEdit extends VisualMode
  constructor: (options = {}) ->
