aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/marks.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'content_scripts/marks.coffee')
-rw-r--r--content_scripts/marks.coffee7
1 files changed, 4 insertions, 3 deletions
diff --git a/content_scripts/marks.coffee b/content_scripts/marks.coffee
index 6eab3be6..ac653a52 100644
--- a/content_scripts/marks.coffee
+++ b/content_scripts/marks.coffee
@@ -52,7 +52,7 @@ Marks =
else
localStorage[@getLocationKey keyChar] = @getMarkString()
@showMessage "Created local mark", keyChar
- DomUtils.consumeKeyup event
+ handlerStack.suppressEvent
activateGotoMode: ->
@mode = new Mode
@@ -82,7 +82,8 @@ Marks =
@showMessage "Jumped to local mark", keyChar
else
@showMessage "Local mark not set", keyChar
- DomUtils.consumeKeyup event
+ handlerStack.suppressEvent
-root = exports ? window
+root = exports ? (window.root ?= {})
root.Marks = Marks
+extend window, root unless exports?