aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrmr19932015-06-02 16:08:36 +0100
committermrmr19932015-06-10 17:21:23 +0100
commitb3cee0a042cdba8ce98f74edc1c08b7c15304492 (patch)
tree4f5c934c5689fc746283ad77e6f15ef304464865
parent7fc0492aa1f459588d6bd4e2397c4858fcdd6c4b (diff)
downloadvimium-b3cee0a042cdba8ce98f74edc1c08b7c15304492.tar.bz2
Handle esc explicitly in the FindMode keydown handler, not by options
-rw-r--r--content_scripts/vimium_frontend.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 413c06d0..eb94b6e8 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -740,7 +740,6 @@ class FindMode extends Mode
super
name: "find"
indicator: false
- exitOnEscape: true
exitOnClick: true
keydown: (event) =>
@@ -760,6 +759,8 @@ class FindMode extends Mode
@historyIndex = Math.max -1, @historyIndex - 1
rawQuery = if 0 <= @historyIndex then FindModeHistory.getQuery @historyIndex else @partialQuery
HUD.showFindMode rawQuery
+ else if KeyboardUtils.isEscape event
+ @exit event
exit: (event) ->
super()