aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJez Ng2012-10-23 21:30:21 -0400
committerJez Ng2012-10-23 21:30:21 -0400
commite0db72c81361ebc6b950f624e22a90c6261c0ca2 (patch)
treece0f213e1601ca12c5fc90a78e5709a381906db9
parent7979a0920f9148c47f86e39c56908d358cbc4647 (diff)
downloadvimium-e0db72c81361ebc6b950f624e22a90c6261c0ca2.tar.bz2
Avoid spurious HUD after shift-toggling tab opening behavior.
-rw-r--r--content_scripts/link_hints.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index e9a35503..168280d8 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -160,9 +160,9 @@ LinkHints =
# Toggle whether to open link in a new or current tab.
@setOpenLinkMode(!@shouldOpenInNewTab, @shouldOpenWithQueue, false)
handlerStack.push({
- keyup: (event) ->
+ keyup: (event) =>
return if (event.keyCode != keyCodes.shiftKey)
- LinkHints.setOpenLinkMode(!LinkHints.shouldOpenInNewTab, LinkHints.shouldOpenWithQueue, false)
+ @setOpenLinkMode(!@shouldOpenInNewTab, @shouldOpenWithQueue, false) if @isActive
@remove()
})