diff options
| author | Stephen Blott | 2017-11-18 12:41:04 +0000 |
|---|---|---|
| committer | GitHub | 2017-11-18 12:41:04 +0000 |
| commit | e8d0fe5f3f87b2ad753975a4485db348af7853fc (patch) | |
| tree | 882e8af2213ea1c6e5e42e4f113fb6c3611a3cf8 /lib/dom_utils.coffee | |
| parent | 72d7af375fbf4ba7fd300ae4602e45a0c2652e59 (diff) | |
| parent | 64995cc4f4777a3b1899caaf2992862f9f02448b (diff) | |
| download | vimium-e8d0fe5f3f87b2ad753975a4485db348af7853fc.tar.bz2 | |
Merge pull request #2802 from mrmr1993/pr/link-hints-pass-non-printing-keys
Don't suppress default action for non-printing keys in link hints
Diffstat (limited to 'lib/dom_utils.coffee')
| -rw-r--r-- | lib/dom_utils.coffee | 8 |
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()) -> |
