aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormrmr19932017-11-14 12:07:26 +0000
committermrmr19932017-11-14 12:07:26 +0000
commit64995cc4f4777a3b1899caaf2992862f9f02448b (patch)
treecf812a896fdb35e02a7d9d817d000e20f43803b2 /lib
parent1880062f68e6f4280b7257f3cd437c0aee7c9696 (diff)
downloadvimium-64995cc4f4777a3b1899caaf2992862f9f02448b.tar.bz2
Don't suppress default action for non-printing keys in link hints
This restores the old behaviour prior to c4cc76e9f6a0a99ebc297e420be739a0fc77f827 (PR #2772).
Diffstat (limited to 'lib')
-rw-r--r--lib/dom_utils.coffee8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index 95b9f4b3..67d5a44c 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -363,8 +363,12 @@ DomUtils =
@remove() if event.target == window
handlerStack.continueBubbling
callback?()
- @suppressEvent event
- handlerStack.suppressEvent
+ if suppressPropagation
+ DomUtils.suppressPropagation event
+ handlerStack.suppressPropagation
+ else
+ DomUtils.suppressEvent event
+ handlerStack.suppressEvent
# Polyfill for selection.type (which is not available in Firefox).
getSelectionType: (selection = document.getSelection()) ->