From 0514b0634ab45702e88f60df665526f1be42cbf5 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Wed, 11 Mar 2015 05:54:19 +0000 Subject: Move Scroller.init() up the handler stack. Move scroller initialisation so that its key handlers are above insert mode in the handler stack. This ensures that the scroller sees keyup events if we enter insert mode while continuous scrolling. Fixes #1526. --- content_scripts/vimium_frontend.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'content_scripts') diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 66922084..bc56e175 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -133,8 +133,6 @@ window.initializeModes = -> keypress: (event) => onKeypress.call @, event keyup: (event) => onKeyup.call @, event - Scroller.init settings - # Install the permanent modes. The permanently-installed insert mode tracks focus/blur events, and # activates/deactivates itself accordingly. new BadgeMode @@ -142,6 +140,7 @@ window.initializeModes = -> new PassKeysMode new InsertMode permanent: true new GrabBackFocus + Scroller.init settings # # Complete initialization work that sould be done prior to DOMReady. -- cgit v1.2.3