diff options
| author | Stephen Blott | 2016-04-04 16:02:47 +0100 |
|---|---|---|
| committer | Stephen Blott | 2016-04-04 16:02:47 +0100 |
| commit | 24b3301e047cf84f02df41766cfe9710c14d9d95 (patch) | |
| tree | 74b336a1ad84127ae3ef26dd8357d0a78fbb9ca2 /content_scripts/link_hints.coffee | |
| parent | ee3dc128ff48b07abf2eea28a5384cbbaf6c52ec (diff) | |
| download | vimium-24b3301e047cf84f02df41766cfe9710c14d9d95.tar.bz2 | |
Remove keyboard-suppressing mode when necessary.
Diffstat (limited to 'content_scripts/link_hints.coffee')
| -rw-r--r-- | content_scripts/link_hints.coffee | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
