From 33abff96eeb052af807f9987506d611ce25b2757 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Tue, 3 Feb 2015 08:24:42 +0000 Subject: Visual/edit modes: fix bug in event handling. --- content_scripts/mode_visual_edit.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content_scripts/mode_visual_edit.coffee b/content_scripts/mode_visual_edit.coffee index 5b622e4d..4ab425a3 100644 --- a/content_scripts/mode_visual_edit.coffee +++ b/content_scripts/mode_visual_edit.coffee @@ -388,8 +388,8 @@ class Movement extends CountPrefix if @selection.type == "Range" and event?.type == "keydown" and KeyboardUtils.isEscape event handlerStack.push _name: "visual/range/escape" - click: -> handlerStack.remove() - focus: -> handlerStack.remove() + click: -> handlerStack.remove(); @continueBubbling + focus: -> handlerStack.remove(); @continueBubbling keydown: (event) => handlerStack.remove() if @selection.type == "Range" and event.type == "keydown" and KeyboardUtils.isEscape event -- cgit v1.2.3