aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorStephen Blott2017-11-24 09:35:09 +0000
committerStephen Blott2017-11-24 09:35:31 +0000
commitf93410695cf5b62014cc9e37c0978c0e992b058e (patch)
tree411efce7182783c94181e44c3e8b775130a8ce38 /content_scripts
parent85f0ec02eafc60252e63667958b72188d697c423 (diff)
downloadvimium-f93410695cf5b62014cc9e37c0978c0e992b058e.tar.bz2
Retain @tabCount unchanged for non-printable characters.
Previously, @tabCount was reset on the `<Shift>` `keydown` event, which defeats the purpose of #2792. Also, the @tabCount was reset on other non-printable characters such as `<LeftArrow>`.
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/link_hints.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index 118202aa..efb9239f 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -277,7 +277,6 @@ class LinkHintsMode
HintCoordinator.sendMessage "rotateHints"
else
- @tabCount = 0 unless event.ctrlKey or event.metaKey or event.altKey
unless event.repeat
keyChar =
if Settings.get "filterLinkHints"
@@ -287,6 +286,7 @@ class LinkHintsMode
if keyChar
keyChar = " " if keyChar == "space"
if keyChar.length == 1
+ @tabCount = 0
@markerMatcher.pushKeyChar keyChar
@updateVisibleMarkers()
else