aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/commands.coffee
diff options
context:
space:
mode:
authorJez Ng2012-09-08 16:37:05 -0400
committerJez Ng2012-09-08 16:37:05 -0400
commitadf8b7cc617279e50594477560ec7031e2ab68ea (patch)
treef43660994fb29770bd38e4b11cc11d828ecc0615 /background_scripts/commands.coffee
parent3e5bba24ede4f9392ff666634a0a8f05e21a02d1 (diff)
parente740ea52b646f1b7cd0ef13e15571b20adaa3bd8 (diff)
downloadvimium-adf8b7cc617279e50594477560ec7031e2ab68ea.tar.bz2
Merge branch 'next-release'
Diffstat (limited to 'background_scripts/commands.coffee')
-rw-r--r--background_scripts/commands.coffee6
1 files changed, 3 insertions, 3 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee
index e3001f4f..69c37ac4 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -43,9 +43,9 @@ Commands =
# On the other hand, <c-a> and <c-A> are different named keys - for one of
# them you have to press "shift" as well.
normalizeKey: (key) ->
- 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() + ">")
+ 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() + ">")
parseCustomKeyMappings: (customKeyMappings) ->
lines = customKeyMappings.split("\n")