aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorStephen Blott2015-01-29 08:26:46 +0000
committerStephen Blott2015-01-29 08:26:46 +0000
commitacbff2c6c67dffda66fa87a3bddff7d193498706 (patch)
tree5fba35d41953f897bdcee3011b97c305c88ca1f9 /content_scripts
parent4006663f80e97497ae1bfda51f773c1bdfc96a41 (diff)
downloadvimium-acbff2c6c67dffda66fa87a3bddff7d193498706.tar.bz2
Visual/edit modes: really fix restore of insert-mode sub mode.
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/mode.coffee7
1 files changed, 4 insertions, 3 deletions
diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee
index bda8672c..a69c90a7 100644
--- a/content_scripts/mode.coffee
+++ b/content_scripts/mode.coffee
@@ -151,10 +151,11 @@ class Mode
# case), because they do not need to be concerned with the value they yield.
alwaysContinueBubbling: handlerStack.alwaysContinueBubbling
- # Get a copy of the configuration options for this mode (that is, excluding the main keyboard-event
- # handlers).
+ # Get a copy of the configuration options for this mode, but excluding the main keyboard-event handlers.
getConfigurationOptions: ->
- extend (extend {}, @options), keydown: null, keypress: null, keyup: null
+ options = extend {}, @options
+ delete options[key] for key in [ "keydown", "keypress", "keyup" ]
+ options
# Static method. Used externally and internally to initiate bubbling of an updateBadge event and to send
# the resulting badge to the background page. We only update the badge if this document (hence this frame)