From 81a22885c14b3cb12dc11484b01a689f1e0c2e46 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Wed, 20 May 2015 19:46:51 +0100 Subject: Allowing mapping . Fixes #544. Copy of #655. --- background_scripts/commands.coffee | 1 + 1 file changed, 1 insertion(+) (limited to 'background_scripts') diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index bca1c3a4..708fe5d5 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -52,6 +52,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 //ig, " " parseCustomKeyMappings: (customKeyMappings) -> lines = customKeyMappings.split("\n") -- cgit v1.2.3