diff options
| author | Stephen Blott | 2015-01-02 08:23:12 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-02 08:23:12 +0000 |
| commit | b5535bc5a1b44c12cff62bac601a8d6ec7e04a6c (patch) | |
| tree | ea57c640a2582407b66f511a33ada5a2a9ba434e /content_scripts/vimium_frontend.coffee | |
| parent | a321ca5e1a335f0b04714fa8ea00c2bac8febb86 (diff) | |
| download | vimium-b5535bc5a1b44c12cff62bac601a8d6ec7e04a6c.tar.bz2 | |
Modes; better name for handlerStack.passDirectlyToPage.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 409cf96b..59404247 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -123,11 +123,6 @@ initializePreDomReady = -> # immediately above normal mode. Scroller.init settings - handlePassKeyEvent = (event) -> - for keyChar in [ KeyboardUtils.getKeyChar(event), String.fromCharCode(event.charCode) ] - return handlerStack.passThrough if keyChar and isPassKey keyChar - true - # Install passKeys and insert modes. These too are permanently on the stack (although not always active). passKeysMode = new PassKeysMode() insertMode = new InsertMode() @@ -444,7 +439,7 @@ onKeypress = (event) -> DomUtils.suppressEvent(event) else if (!isInsertMode() && !findMode) if (isPassKey keyChar) - return handlerStack.passThrough + return handlerStack.passDirectlyToPage if (currentCompletionKeys.indexOf(keyChar) != -1 or isValidFirstKey(keyChar)) DomUtils.suppressEvent(event) |
