aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2017-05-17 11:40:39 +0100
committerStephen Blott2017-05-17 11:40:39 +0100
commit2b4d668ff34047033dba5af56f9b5cb9027627ee (patch)
tree102fb8c305262115579fb8886d86edc759f00847
parent400602e11a4dfa5e00c50d123bf2e976d47b2dfb (diff)
downloadvimium-2b4d668ff34047033dba5af56f9b5cb9027627ee.tar.bz2
Consume keyboard events for marks.
We were leaking both the `keypress` and the `keyup` events when marks are created and used.
-rw-r--r--content_scripts/marks.coffee2
1 files changed, 2 insertions, 0 deletions
diff --git a/content_scripts/marks.coffee b/content_scripts/marks.coffee
index c4b32c5e..6eab3be6 100644
--- a/content_scripts/marks.coffee
+++ b/content_scripts/marks.coffee
@@ -52,6 +52,7 @@ Marks =
else
localStorage[@getLocationKey keyChar] = @getMarkString()
@showMessage "Created local mark", keyChar
+ DomUtils.consumeKeyup event
activateGotoMode: ->
@mode = new Mode
@@ -81,6 +82,7 @@ Marks =
@showMessage "Jumped to local mark", keyChar
else
@showMessage "Local mark not set", keyChar
+ DomUtils.consumeKeyup event
root = exports ? window
root.Marks = Marks