aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/vimium_frontend.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
-rw-r--r--content_scripts/vimium_frontend.coffee7
1 files changed, 6 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 118f985e..4df24da4 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -560,7 +560,12 @@ exitInsertMode = (target) ->
insertModeLock = null
HUD.hide()
-isInsertMode = -> insertModeLock != null
+isInsertMode = ->
+ # In addition to checking insertModeLock, we also need to check whether the active element is
+ # contentEditable because some sites (e.g. inbox.google.com) change the contentEditable attribute on the
+ # fly; see #1245.
+ insertModeLock != null or
+ (document.activeElement and document.activeElement.isContentEditable)
# should be called whenever rawQuery is modified.
updateFindModeQuery = ->