aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode_insert.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'content_scripts/mode_insert.coffee')
-rw-r--r--content_scripts/mode_insert.coffee6
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