From 1191d73c6fea65bcd4ceec807458e81a1a940047 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Tue, 13 Jan 2015 10:07:26 +0000 Subject: Modes; temporary commit. --- content_scripts/mode.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'content_scripts/mode.coffee') 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. -- cgit v1.2.3