From f993daf357ea85183bcf17cbe7269284cacddd8e Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 25 Jan 2015 14:24:36 +0000 Subject: Visual/edit modes: better mode changes on blur/focus. --- content_scripts/mode.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content_scripts/mode.coffee') diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee index a74acfed..e80df69c 100644 --- a/content_scripts/mode.coffee +++ b/content_scripts/mode.coffee @@ -78,7 +78,7 @@ class Mode if @options.exitOnBlur @push _name: "mode-#{@id}/exitOnBlur" - "blur": (event) => @alwaysContinueBubbling => @exit() if event.target == @options.exitOnBlur + "blur": (event) => @alwaysContinueBubbling => @exit event if event.target == @options.exitOnBlur # If @options.exitOnClick is truthy, then the mode will exit on any click event. if @options.exitOnClick -- cgit v1.2.3