diff options
| author | Stephen Blott | 2015-01-12 15:46:57 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2015-01-12 15:46:57 +0000 | 
| commit | 88e4f1587f30b928ae7cce5d9e01e93b27c87f55 (patch) | |
| tree | dd847b5db9a05b28147fb1467776b8e2a60aba95 /content_scripts/link_hints.coffee | |
| parent | ee17e7365b84d0c59ce3bcf50c517a7408b372b3 (diff) | |
| download | vimium-88e4f1587f30b928ae7cce5d9e01e93b27c87f55.tar.bz2 | |
Modes; hint mode should be an insert-mode blocker...
Also:
  - visual-mode template should block insert.
  - hint mode should exit on click.
Diffstat (limited to 'content_scripts/link_hints.coffee')
| -rw-r--r-- | content_scripts/link_hints.coffee | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 909f50b4..ad2afaa2 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -66,12 +66,13 @@ LinkHints =        { id: "vimiumHintMarkerContainer", className: "vimiumReset" })      @handlerMode = -      new class HintMode extends Mode +      new class HintMode extends InsertModeBlocker          constructor: ->            super              name: "hint/#{mode.name}"              badge: "#{mode.key}?"              exitOnEscape: true +            exitOnClick: true              keydown: (event) -> LinkHints.onKeyDownInMode hintMarkers, event              # trap all key events              keypress: => @stopBubblingAndFalse | 
