aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode_find.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-01-05 14:25:08 +0000
committerStephen Blott2015-01-05 15:40:28 +0000
commit94586418ffd92246551c26ff00f0d80b0e2289fa (patch)
tree2f7f716810766668d8485f2d4bef6fecfc1d84cc /content_scripts/mode_find.coffee
parentf2cc3b3e870e3c0c6946a675b7971e128bf9e824 (diff)
downloadvimium-94586418ffd92246551c26ff00f0d80b0e2289fa.tar.bz2
Modes; more minor tweeks.
Diffstat (limited to 'content_scripts/mode_find.coffee')
-rw-r--r--content_scripts/mode_find.coffee14
1 files changed, 7 insertions, 7 deletions
diff --git a/content_scripts/mode_find.coffee b/content_scripts/mode_find.coffee
index 8b458770..0937c510 100644
--- a/content_scripts/mode_find.coffee
+++ b/content_scripts/mode_find.coffee
@@ -2,8 +2,8 @@
# When we use find mode, the selection/focus can end up in a focusable/editable element. In this situation,
# PostFindMode handles two special cases:
-# 1. Suppress InsertModeTrigger. This presents keyboard events from dropping us unintentionaly into insert
-# mode. Here, this is achieved by inheriting PostFindMode from InsertModeBlocker.
+# 1. Suppress InsertModeTrigger. This prevents keyboard events from dropping us unintentionaly into insert
+# mode. Here, this is achieved by inheriting from InsertModeBlocker.
# 2. If the very-next keystroke is Escape, then drop immediately into insert mode.
#
class PostFindMode extends InsertModeBlocker
@@ -31,11 +31,11 @@ class PostFindMode extends InsertModeBlocker
# Install various ways in which we can leave this mode.
@push
- DOMActive: (event) => handlerStack.alwaysContinueBubbling => @exit()
- click: (event) => handlerStack.alwaysContinueBubbling => @exit()
- focus: (event) => handlerStack.alwaysContinueBubbling => @exit()
- blur: (event) => handlerStack.alwaysContinueBubbling => @exit()
- keydown: (event) => handlerStack.alwaysContinueBubbling => @exit() if document.activeElement != element
+ DOMActive: (event) => @alwaysContinueBubbling => @exit()
+ click: (event) => @alwaysContinueBubbling => @exit()
+ focus: (event) => @alwaysContinueBubbling => @exit()
+ blur: (event) => @alwaysContinueBubbling => @exit()
+ keydown: (event) => @alwaysContinueBubbling => @exit() if document.activeElement != element
root = exports ? window
root.PostFindMode = PostFindMode