aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/link_hints.coffee13
1 files changed, 0 insertions, 13 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index 78f80ee5..b72d14dd 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -181,22 +181,9 @@ LinkHints =
if event.keyCode == keyCodes.shiftKey
@setOpenLinkMode(if @mode is OPEN_IN_CURRENT_TAB then OPEN_IN_NEW_TAB else OPEN_IN_CURRENT_TAB)
- handlerStack.push({
- keyup: (event) =>
- return if (event.keyCode != keyCodes.shiftKey)
- @setOpenLinkMode(prev_mode) if @isActive
- handlerStack.remove()
- })
else # event.keyCode == keyCodes.ctrlKey
@setOpenLinkMode(if @mode is OPEN_IN_NEW_FG_TAB then OPEN_IN_NEW_TAB else OPEN_IN_NEW_FG_TAB)
- handlerStack.push({
- keyup: (event) =>
- return if (event.keyCode != keyCodes.ctrlKey)
- @setOpenLinkMode(prev_mode) if @isActive
- handlerStack.remove()
- })
-
# TODO(philc): Ignore keys that have modifiers.
if (KeyboardUtils.isEscape(event))
@deactivateMode()