aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2016-02-22 10:22:08 +0000
committerStephen Blott2016-02-22 10:22:08 +0000
commit51884d5889047f5a130c9c409a3e833ccdea0f14 (patch)
treee82bbd167d55899a37bde3bd54c7b7ff73db776c
parent5cbc5ad702a01a81b98f8c82edb3b6d227c2c7b5 (diff)
downloadvimium-51884d5889047f5a130c9c409a3e833ccdea0f14.tar.bz2
Remove legacy reference to edit mode.
Omitted from #1961.
-rw-r--r--content_scripts/mode_insert.coffee3
1 files changed, 1 insertions, 2 deletions
diff --git a/content_scripts/mode_insert.coffee b/content_scripts/mode_insert.coffee
index 93615b8f..9037b05a 100644
--- a/content_scripts/mode_insert.coffee
+++ b/content_scripts/mode_insert.coffee
@@ -54,8 +54,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 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.parentMode
+ @exit event, target if @insertModeLock and target == @insertModeLock
"focus": (event) => @alwaysContinueBubbling =>
if @insertModeLock != event.target and DomUtils.isFocusable event.target
@activateOnElement event.target