diff options
| author | Stephen Blott | 2016-01-31 17:04:52 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2016-01-31 17:04:52 +0000 | 
| commit | d3f83fbe03d80d77f20d364f7b5e6e52260f516f (patch) | |
| tree | 40c5012734c8633bc6695c1dfe85b9693c5ca3c7 /content_scripts/link_hints.coffee | |
| parent | 541dadb2872690876c3ca7c79d567881558327e2 (diff) | |
| download | vimium-d3f83fbe03d80d77f20d364f7b5e6e52260f516f.tar.bz2 | |
Use a count with link hints; working w/ Escape.
With a count, link hints now exit on `Escape`.
Diffstat (limited to 'content_scripts/link_hints.coffee')
| -rw-r--r-- | content_scripts/link_hints.coffee | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 3fcbfd40..b5fc974f 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -21,7 +21,9 @@ DOWNLOAD_LINK_URL = name: "download"  LinkHints =    activateMode: (count = 1, mode = OPEN_IN_CURRENT_TAB) ->      if 0 < count -      new LinkHintsMode mode, -> LinkHints.activateMode count-1, mode +      new LinkHintsMode mode, (event = null) -> +        unless event?.type == "keydown" and KeyboardUtils.isEscape event +          LinkHints.activateMode count-1, mode    activateModeToOpenInNewTab: (count) -> @activateMode count, OPEN_IN_NEW_BG_TAB    activateModeToOpenInNewForegroundTab: (count) -> @activateMode count, OPEN_IN_NEW_FG_TAB  | 
