diff options
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | background_scripts/commands.coffee | 1 | 
2 files changed, 2 insertions, 0 deletions
| @@ -129,6 +129,7 @@ The following special keys are available for mapping:  - `<c-*>`, `<a-*>`, `<m-*>` for ctrl, alt, and meta (command on Mac) respectively with any key. Replace `*`    with the key of choice.  - `<left>`, `<right>`, `<up>`, `<down>` for the arrow keys +- `<space>` for the space key  - `<f1>` through `<f12>` for the function keys  Shifts are automatically detected so, for example, `<c-&>` corresponds to ctrl+shift+7 on an English keyboard. 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" | 
