From 2b4d668ff34047033dba5af56f9b5cb9027627ee Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Wed, 17 May 2017 11:40:39 +0100 Subject: Consume keyboard events for marks. We were leaking both the `keypress` and the `keyup` events when marks are created and used. --- content_scripts/marks.coffee | 2 ++ 1 file changed, 2 insertions(+) (limited to 'content_scripts') 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 -- cgit v1.2.3