diff options
| author | Stephen Blott | 2017-05-17 11:40:39 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2017-05-17 11:40:39 +0100 | 
| commit | 2b4d668ff34047033dba5af56f9b5cb9027627ee (patch) | |
| tree | 102fb8c305262115579fb8886d86edc759f00847 | |
| parent | 400602e11a4dfa5e00c50d123bf2e976d47b2dfb (diff) | |
| download | vimium-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.coffee | 2 | 
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 | 
