aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorPhil Crosby2014-08-16 16:52:28 -0700
committerPhil Crosby2014-08-16 16:52:28 -0700
commit328ebe9f0c49f0d48cff07280ee7bd8da21d3476 (patch)
tree95d37da4417480a538570b3ff1da7aa7392a65b1 /content_scripts
parent0608057dacf51bb575524d10c7e34f0668293f23 (diff)
downloadvimium-328ebe9f0c49f0d48cff07280ee7bd8da21d3476.tar.bz2
Add comments as to why we should stop propagating the keyup event
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vimium_frontend.coffee8
1 files changed, 4 insertions, 4 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index b66a7990..c7e5f2ef 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -433,10 +433,10 @@ onKeydown = (event) ->
isValidFirstKey(KeyboardUtils.getKeyChar(event))))
event.stopPropagation()
-onKeyup = (event) ->
- return unless handlerStack.bubbleEvent('keyup', event)
- if (!isInsertMode())
- event.stopPropagation();
+onKeyup = (event) ->
+ return unless handlerStack.bubbleEvent("keyup", event)
+ # Don't propagate the keyup to the underlying page, since Vimium has handled it. See #733.
+ event.stopPropagation() unless isInsertMode()
checkIfEnabledForUrl = ->
url = window.location.toString()