aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/commands.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-03-02 10:26:38 +0000
committerStephen Blott2016-03-05 05:40:35 +0000
commit177a12ca5ccfd08ca5576575611907bfd1f7f34f (patch)
tree2ee40e82b667d29734c412df52437f7283aa1e83 /background_scripts/commands.coffee
parent91bcedbf4aebbd2691ef68ca96094206a942a1b8 (diff)
downloadvimium-177a12ca5ccfd08ca5576575611907bfd1f7f34f.tar.bz2
Key bindings; document Commands.generateKeyStateMapping().
Diffstat (limited to 'background_scripts/commands.coffee')
-rw-r--r--background_scripts/commands.coffee1
1 files changed, 1 insertions, 0 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee
index 08b8f449..7429b6f0 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -101,6 +101,7 @@ Commands =
@keyToCommandRegistry = {}
@mapKeyToCommand { key, command } for own key, command of defaultKeyMappings
+ # This generates a nested key-to-command mapping structure. There is an example in mode_key_handler.coffee.
generateKeyStateMapping: ->
# Keys are either literal characters, or "named" - for example <a-b> (alt+b), <left> (left arrow) or <f12>
# This regular expression captures two groups: the first is a named key, the second is the remainder of