aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/commands.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-05-31 09:55:52 +0100
committerStephen Blott2015-05-31 09:55:52 +0100
commit7e9a5bfd5a2fc72f600306fc025f84f56864f3ec (patch)
tree046adc1df4d5a3527e76b1f80e56925a5c4ace59 /background_scripts/commands.coffee
parent21daa5d37e467d5cd1e38238265294e94af8b99d (diff)
parent81a22885c14b3cb12dc11484b01a689f1e0c2e46 (diff)
downloadvimium-7e9a5bfd5a2fc72f600306fc025f84f56864f3ec.tar.bz2
Merge pull request #1675 from smblott-github/map-space-key
Allowing mapping <space>.
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 a51ff075..64ec36be 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -44,6 +44,7 @@ Commands =
key.replace(/<[acm]-/ig, (match) -> match.toLowerCase())
.replace(/<([acm]-)?([a-zA-Z0-9]{2,5})>/g, (match, optionalPrefix, keyName) ->
"<" + (if optionalPrefix then optionalPrefix else "") + keyName.toLowerCase() + ">")
+ .replace /<space>/ig, " "
parseCustomKeyMappings: (customKeyMappings) ->
for line in customKeyMappings.split "\n"