From f5007e2f69cfcf87c44d1eb34532bc1d3c2f591b Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Fri, 21 Apr 2017 11:01:16 +0100 Subject: Fix tab for link-hint selection. We were leaking the keydown event to the page when using TAB to select link hints (filtered hints). --- content_scripts/link_hints.coffee | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3