diff options
| author | Stephen Blott | 2015-01-10 00:00:11 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2015-01-10 07:23:47 +0000 | 
| commit | ac90db47aa2671cd663cc6a9cdf783dc30a582e9 (patch) | |
| tree | a80cafd3af5c43ac20620e3c8d9dabd0addd9b7b /content_scripts/mode.coffee | |
| parent | d97e7786cb04dbbe5cae8e4b86e25437f66eb799 (diff) | |
| download | vimium-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.coffee | 3 | 
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 = []  | 
