From e0db72c81361ebc6b950f624e22a90c6261c0ca2 Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Tue, 23 Oct 2012 21:30:21 -0400 Subject: Avoid spurious HUD after shift-toggling tab opening behavior. --- content_scripts/link_hints.coffee | 4 ++-- 1 file 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() }) -- cgit v1.2.3