Skip to content

Commit

Permalink
Modes; minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
smblott-github committed Jan 1, 2015
1 parent acefe43 commit aed5e2b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content_scripts/vimium_frontend.coffee
Expand Up @@ -618,8 +618,8 @@ window.enterInsertMode = (target) ->
# Note. This returns the truthiness of target, which is required by isInsertMode.
#
enterInsertModeWithoutShowingIndicator = (target) ->
insertModeLock = target
unless Mode.isInsert()
insertModeLock = target
# Install insert-mode handler. Hereafter, all key events will be passed directly to the underlying page.
# The current isInsertMode logic in the normal-mode handlers is now redundant..
new Mode
Expand Down
2 changes: 1 addition & 1 deletion lib/handler_stack.coffee
Expand Up @@ -41,5 +41,5 @@ class HandlerStack
@stack.splice(i, 1)
break

root. HandlerStack = HandlerStack
root.HandlerStack = HandlerStack
root.handlerStack = new HandlerStack
1 change: 0 additions & 1 deletion tests/dom_tests/dom_tests.coffee
Expand Up @@ -178,7 +178,6 @@ context "Input focus",
focusInput 1
assert.equal "first", document.activeElement.id
# deactivate the tabbing mode and its overlays
currentCompletionKeys = ""
handlerStack.bubbleEvent 'keydown', mockKeyboardEvent("A")

focusInput 100
Expand Down

0 comments on commit aed5e2b

Please sign in to comment.