aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorStephen Blott2015-01-29 07:39:40 +0000
committerStephen Blott2015-01-29 07:39:40 +0000
commit4006663f80e97497ae1bfda51f773c1bdfc96a41 (patch)
treea96036803fb47b24b9445e29cefb08a14d1454d1 /content_scripts
parent6edfb1f7b830652ca715fb16b999afc2efc184a9 (diff)
downloadvimium-4006663f80e97497ae1bfda51f773c1bdfc96a41.tar.bz2
Visual/edit modes: fix restore of insert-mode sub mode.
Diffstat (limited to 'content_scripts')
-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 81a0e2ee..dfa60a3d 100644
--- a/content_scripts/mode_insert.coffee
+++ b/content_scripts/mode_insert.coffee
@@ -48,7 +48,7 @@ class InsertMode extends Mode
# 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 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
+ @exit event, target if @insertModeLock and target == @insertModeLock and not @options.parentMode
"focus": (event) => @alwaysContinueBubbling =>
if @insertModeLock != event.target and DomUtils.isFocusable event.target
@activateOnElement event.target