aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorStephen Blott2017-11-10 07:20:24 +0000
committerGitHub2017-11-10 07:20:24 +0000
commit7cb53750bfb5f62849fcfb52f67b1e04ad0f9672 (patch)
tree11bc262e83097087d8363e82c4e0295e89628be3 /content_scripts
parent56c2a89613199bc0369a66d19bf848e14b019671 (diff)
parentca6733c88e94c4e0d8d916eb4d494d4c8a179aa4 (diff)
downloadvimium-7cb53750bfb5f62849fcfb52f67b1e04ad0f9672.tar.bz2
Merge pull request #2782 from mrmr1993/suppress-link-hint-keys
Suppress link hint keys
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/link_hints.coffee7
1 files changed, 3 insertions, 4 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index 9145454a..f2fb7c19 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -293,11 +293,10 @@ class LinkHintsMode
if keyChar.length == 1
@markerMatcher.pushKeyChar keyChar
@updateVisibleMarkers()
- handlerStack.suppressEvent
- return
+ else
+ return
- # We've handled the event, so suppress it and update the mode indicator.
- DomUtils.suppressEvent event
+ handlerStack.suppressEvent
updateVisibleMarkers: (tabCount = 0) ->
{hintKeystrokeQueue, linkTextKeystrokeQueue} = @markerMatcher