 # Todo:
 # Fix word movement, particularly for "a word".
 # Konami code?
+# p/P.
 
 # This prevents printable characters from being passed through to underlying page.  It should, however, allow
 # through chrome keyboard shortcuts.  It's a backstop for all of the modes following.

        "V": -> new VisualLineMode
        "y": -> @yank()

    # Additional commands when run under edit mode.
    if @options.editModeParent and not @options.oneMovementOnly
      extend @commands,

      new SuspendedEditMode @options, lastSubMode

# In edit mode, the input blurs if the user changes tabs or clicks outside of the element.  In the former
# case, the user expects to remain in edit mode when they return.  In the latter case, they may just be
# copying some text with the mouse/Ctrl-C, and again they expect to remain in edit mode.  SuspendedEditMode
# monitors various events and tries to either exit completely or re-enter edit mode, as appropriate.
class SuspendedEditMode extends Mode
  constructor: (editModeOptions, lastSubMode = null) ->
    super
