diff options
| author | Stephen Blott | 2015-01-02 17:57:19 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-03 05:18:47 +0000 |
| commit | 072bb424d16e6faba243dcf1ab247494cbf8c9ee (patch) | |
| tree | fac7621470711a17043cffd3735314b79cc031b0 /content_scripts/mode_insert.coffee | |
| parent | 2d8c478e8086abf80b206d0fd8abc488a035b5cd (diff) | |
| download | vimium-072bb424d16e6faba243dcf1ab247494cbf8c9ee.tar.bz2 | |
Modes; better constant naming.
Diffstat (limited to 'content_scripts/mode_insert.coffee')
| -rw-r--r-- | content_scripts/mode_insert.coffee | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/content_scripts/mode_insert.coffee b/content_scripts/mode_insert.coffee index 9504edfd..ccd93870 100644 --- a/content_scripts/mode_insert.coffee +++ b/content_scripts/mode_insert.coffee @@ -44,8 +44,8 @@ class InsertMode extends Mode generateKeyHandler: (type) -> (event) => - return Mode.propagate unless @isActive() - return handlerStack.passDirectlyToPage unless type == "keydown" and KeyboardUtils.isEscape event + return @continueBubbling unless @isActive() + return @stopBubblingAndTrue unless type == "keydown" and KeyboardUtils.isEscape event # We're now exiting insert mode. if @isEditable(event.srcElement) or @isEmbed event.srcElement # Remove the focus so the user can't just get himself back into insert mode by typing in the same input @@ -55,7 +55,7 @@ class InsertMode extends Mode # games. See discussion in #1211 and #1194. event.srcElement.blur() @deactivate() - Mode.suppressPropagation + @suppressEvent constructor: -> super |
