aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2017-04-21 11:01:16 +0100
committerStephen Blott2017-04-21 11:01:19 +0100
commitf5007e2f69cfcf87c44d1eb34532bc1d3c2f591b (patch)
tree7788a2c966ee57a8aa577a669f078131a2ebe6e5
parent20b039c2b5910718a1bb4e76f32f68fad0ac890a (diff)
downloadvimium-f5007e2f69cfcf87c44d1eb34532bc1d3c2f591b.tar.bz2
Fix tab for link-hint selection.
We were leaking the keydown event to the page when using TAB to select link hints (filtered hints).
-rw-r--r--content_scripts/link_hints.coffee4
1 files changed, 4 insertions, 0 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index eb138caa..d9c9a614 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -295,6 +295,10 @@ class LinkHintsMode
@markerMatcher.pushKeyChar keyChar
@updateVisibleMarkers()
DomUtils.consumeKeyup event
+ return
+
+ # We've handled the event, so suppress it and update the mode indicator.
+ DomUtils.suppressEvent event
updateVisibleMarkers: (tabCount = 0) ->
{hintKeystrokeQueue, linkTextKeystrokeQueue} = @markerMatcher