aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-01-14 15:15:40 +0000
committerStephen Blott2015-01-14 16:17:18 +0000
commitb594caa3eb792dfeb9d423c81a5136102a013b0a (patch)
tree9b00f18f86d0f94d744cf8cb863ddfa07d249786 /content_scripts/mode.coffee
parentab56d8bcd6686991483694d7153c4d0c9b5e513a (diff)
downloadvimium-b594caa3eb792dfeb9d423c81a5136102a013b0a.tar.bz2
Modes; more reworking.
Diffstat (limited to 'content_scripts/mode.coffee')
-rw-r--r--content_scripts/mode.coffee6
1 files changed, 3 insertions, 3 deletions
diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee
index ab482e8f..79559e35 100644
--- a/content_scripts/mode.coffee
+++ b/content_scripts/mode.coffee
@@ -44,7 +44,7 @@ count = 0
class Mode
# If Mode.debug is true, then we generate a trace of modes being activated and deactivated on the console, along
# with a list of the currently active modes.
- debug: false
+ debug: true
@modes: []
# Constants; short, readable names for handlerStack event-handler return values.
@@ -86,7 +86,7 @@ class Mode
_name: "mode-#{@id}/exitOnEscape"
"keydown": (event) =>
return @continueBubbling unless KeyboardUtils.isEscape event
- @exit event
+ @exit event, event.srcElement
DomUtils.suppressKeyupAfterEscape handlerStack
@suppressEvent
@@ -117,8 +117,8 @@ class Mode
@passKeys = passKeys
@registerStateChange?()
- Mode.updateBadge() if @badge
Mode.modes.push @
+ Mode.updateBadge()
@logStack() if @debug
# End of Mode constructor.