aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/commands.coffee6
1 files changed, 4 insertions, 2 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee
index 7ab09f24..531d491f 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -61,11 +61,13 @@ Commands =
switch tokens[0]
when "map"
[ _, key, command, optionList... ] = tokens
+ keySequence = @parseKeySequence key
if command? and @availableCommands[command]
- keySequence = @parseKeySequence key
key = keySequence.join ""
- BgUtils.log "Mapping #{key} to #{command}"
+ BgUtils.log "mapping [\"#{keySequence.join '", "'}\"] to #{command}"
@mapKeyToCommand { key, command, keySequence, options: @parseCommandOptions command, optionList }
+ else
+ BgUtils.log "skipping [\"#{keySequence.join '", "'}\"] for #{command} -- something is not right"
when "unmap"
if tokens.length == 2