diff options
| author | Stephen Blott | 2017-04-21 11:01:16 +0100 |
|---|---|---|
| committer | Stephen Blott | 2017-04-21 11:01:19 +0100 |
| commit | f5007e2f69cfcf87c44d1eb34532bc1d3c2f591b (patch) | |
| tree | 7788a2c966ee57a8aa577a669f078131a2ebe6e5 | |
| parent | 20b039c2b5910718a1bb4e76f32f68fad0ac890a (diff) | |
| download | vimium-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.coffee | 4 |
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 |
