From 24b3301e047cf84f02df41766cfe9710c14d9d95 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Mon, 4 Apr 2016 16:02:47 +0100 Subject: Remove keyboard-suppressing mode when necessary. --- content_scripts/link_hints.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 016e86d7..cef4b480 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -69,6 +69,10 @@ HintCoordinator = singleton: "link-hints-mode" indicator: "Collecting hints..." exitOnEscape: true + # FIXME(smblott) Global link hints is currently insufficiently reliable. If the mode above is left in + # place, then Vimium blocks. As a temporary measure, we install a timer to remove it. + unless @debug + Utils.setTimeout 1000, => @suppressKeyboardEvents.exit() if @suppressKeyboardEvents.modeIsActive @onExit = [onExit] @sendMessage "prepareToActivateMode", modeIndex: availableModes.indexOf mode -- cgit v1.2.3