diff options
| author | Stephen Blott | 2015-03-11 05:54:19 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2015-03-11 05:54:19 +0000 | 
| commit | 0514b0634ab45702e88f60df665526f1be42cbf5 (patch) | |
| tree | b181944dfbaaf62233b6b69e107f7ae14712caa8 | |
| parent | 2db6971cbeffcdf24c42936fbae3c596f1bbecf0 (diff) | |
| download | vimium-0514b0634ab45702e88f60df665526f1be42cbf5.tar.bz2 | |
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.
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 3 | 
1 files changed, 1 insertions, 2 deletions
| 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. | 
