aboutsummaryrefslogtreecommitdiffstats
path: root/lib/handler_stack.coffee
diff options
context:
space:
mode:
authormrmr19932017-11-09 14:06:50 +0000
committermrmr19932017-11-09 14:45:07 +0000
commitac3310d23fa0367b6130a4b05fe41192410fadb3 (patch)
treedcbf2ffc9cb51b34daf42295cdd370336e44033c /lib/handler_stack.coffee
parent177db4d6b07615bc7891512b90568255933db53b (diff)
downloadvimium-ac3310d23fa0367b6130a4b05fe41192410fadb3.tar.bz2
Suppress propagation for keyup events when we have for keydown events
Diffstat (limited to 'lib/handler_stack.coffee')
-rw-r--r--lib/handler_stack.coffee5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/handler_stack.coffee b/lib/handler_stack.coffee
index 646ddfbd..a43fc356 100644
--- a/lib/handler_stack.coffee
+++ b/lib/handler_stack.coffee
@@ -57,7 +57,10 @@ class HandlerStack
if result == @passEventToPage
return true
else if result == @suppressPropagation
- DomUtils.suppressPropagation event
+ if type == "keydown"
+ DomUtils.consumeKeyup event, null, true
+ else
+ DomUtils.suppressPropagation event
return false
else if result == @restartBubbling
return @bubbleEvent type, event