aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2015-01-09 11:35:48 +0000
committerStephen Blott2015-01-09 11:35:48 +0000
commit6008bd71fc091918acc73c5b6f2576ad40b7764a (patch)
treeba06ee3b1998f9490082f1136b8e9c625e929255
parent2e6eb69e99f29acc432b750501168d2a15116e6f (diff)
downloadvimium-6008bd71fc091918acc73c5b6f2576ad40b7764a.tar.bz2
Modes; always choose insert mode for click.
-rw-r--r--content_scripts/vimium_frontend.coffee4
1 files changed, 3 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 99fe4990..d91bb181 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -384,7 +384,9 @@ extend window,
# shouldn't happen anyway. However, it does no harm to enforce it.
singleton: FocusSelector
targetMode: targetMode
- onClickMode: targetMode # For InsertModeBlocker super-class.
+ # For the InsertModeBlocker super-class (we'll always choose InsertMode on click). See comment in
+ # InsertModeBlocker for an explanation of why this is needed.
+ onClickMode: targetMode
keydown: (event) =>
if event.keyCode == KeyboardUtils.keyCodes.tab
hints[selectedInputIndex].classList.remove 'internalVimiumSelectedInputHint'