aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-01-10 00:00:11 +0000
committerStephen Blott2015-01-10 07:23:47 +0000
commitac90db47aa2671cd663cc6a9cdf783dc30a582e9 (patch)
treea80cafd3af5c43ac20620e3c8d9dabd0addd9b7b /content_scripts/mode.coffee
parentd97e7786cb04dbbe5cae8e4b86e25437f66eb799 (diff)
downloadvimium-ac90db47aa2671cd663cc6a9cdf783dc30a582e9.tar.bz2
Modes; more changes...
- Better comments. - Strip unnecessary handlers for leaving post-find mode. - Simplify passKeys. - focusInput now re-bubbles its triggering keydown event.
Diffstat (limited to 'content_scripts/mode.coffee')
-rw-r--r--content_scripts/mode.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee
index b6cb5fae..37f3a8c2 100644
--- a/content_scripts/mode.coffee
+++ b/content_scripts/mode.coffee
@@ -45,11 +45,12 @@ class Mode
# If this is true, then we generate a trace of modes being activated and deactivated on the console.
@debug = true
- # Constants; readable shortcuts for event-handler return values.
+ # Constants; short, readable names for handlerStack event-handler return values.
continueBubbling: true
suppressEvent: false
stopBubblingAndTrue: handlerStack.stopBubblingAndTrue
stopBubblingAndFalse: handlerStack.stopBubblingAndFalse
+ restartBubbling: handlerStack.restartBubbling
constructor: (@options={}) ->
@handlers = []