aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-01-13 10:07:26 +0000
committerStephen Blott2015-01-13 10:07:26 +0000
commit1191d73c6fea65bcd4ceec807458e81a1a940047 (patch)
treec522c845f317f0fb725ceb121773e89219a52d11 /content_scripts/mode.coffee
parent7684019cb5d5c1d0ac5d7216653613220b4fd8d9 (diff)
downloadvimium-1191d73c6fea65bcd4ceec807458e81a1a940047.tar.bz2
Modes; temporary commit.
Diffstat (limited to 'content_scripts/mode.coffee')
-rw-r--r--content_scripts/mode.coffee4
1 files changed, 3 insertions, 1 deletions
diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee
index d06f5eae..84b76301 100644
--- a/content_scripts/mode.coffee
+++ b/content_scripts/mode.coffee
@@ -101,7 +101,9 @@ class Mode
if @options.exitOnClick
@push
_name: "mode-#{@id}/exitOnClick"
- "click": (event) => @alwaysContinueBubbling => @exit()
+ "click": (event) => @alwaysContinueBubbling =>
+ @clickEvent = event
+ @exit()
# If @options.trackState is truthy, then the mode mainatins the current state in @enabled and @passKeys,
# and calls @registerStateChange() (if defined) whenever the state changes.