aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'content_scripts/mode.coffee')
-rw-r--r--content_scripts/mode.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee
index c1dea59a..2d8cc9cc 100644
--- a/content_scripts/mode.coffee
+++ b/content_scripts/mode.coffee
@@ -81,7 +81,7 @@ class Mode
_name: "mode-#{@id}/exitOnEscape"
"keydown": (event) =>
return @continueBubbling unless KeyboardUtils.isEscape event
- @exit event, event.srcElement
+ @exit event, event.target
DomUtils.suppressKeyupAfterEscape handlerStack
# If @options.exitOnBlur is truthy, then it should be an element. The mode will exit when that element