diff options
| -rw-r--r-- | background_scripts/commands.coffee | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index 2982b861..10d20753 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -106,7 +106,9 @@ Commands = while 0 < keys.length [key, rest] = if 0 == keys.search @namedKeyRegex then [RegExp.$1, RegExp.$2] else [keys[0], keys[1..]] if 0 < rest.length - currentMapping = currentMapping[key] ?= {} + # Do not overwrite existing command bindings, they take priority. + break if (currentMapping[key] ?= {}).command + currentMapping = currentMapping[key] else currentMapping[key] = registryEntry keys = rest |
