aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode_insert.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-01-27 16:36:49 +0000
committerStephen Blott2015-01-27 16:36:54 +0000
commita982ce074d517eb9e56c517d86a4bfb3869cf171 (patch)
tree372a3cf5f96238e223cb91eccdfa56923e8fe854 /content_scripts/mode_insert.coffee
parent9d97ce8dab7672d7d1846f7cbe4d22af80c91b01 (diff)
downloadvimium-a982ce074d517eb9e56c517d86a4bfb3869cf171.tar.bz2
Visual/edit modes: minor changes.
- Minor changes. - Deactivate modes on inputs from focusInput().
Diffstat (limited to 'content_scripts/mode_insert.coffee')
-rw-r--r--content_scripts/mode_insert.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/mode_insert.coffee b/content_scripts/mode_insert.coffee
index 79043be9..81a0e2ee 100644
--- a/content_scripts/mode_insert.coffee
+++ b/content_scripts/mode_insert.coffee
@@ -47,7 +47,7 @@ class InsertMode extends Mode
# We can't rely on focus and blur events arriving in the expected order. When the active element
# changes, we might get "focus" before "blur". We track the active element in @insertModeLock, and
# exit only when that element blurs.
- # We don't exit is we're running under edit mode. Edit mode itself will handles that case.
+ # We don't exit if we're running under edit mode. Edit mode itself will handles that case.
@exit event, target if @insertModeLock and target == @insertModeLock and not @options.editModeParent
"focus": (event) => @alwaysContinueBubbling =>
if @insertModeLock != event.target and DomUtils.isFocusable event.target