aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/commands.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-02-28 16:07:25 +0000
committerStephen Blott2016-03-05 05:39:33 +0000
commitf2bced459457dcc962d4bafe2fdf2e6245506ee3 (patch)
tree323a75924f3712a2ea23177747692d110151c648 /background_scripts/commands.coffee
parentb0d2f3bfbc36232c235f913131c78a5bb76b59c3 (diff)
downloadvimium-f2bced459457dcc962d4bafe2fdf2e6245506ee3.tar.bz2
Key bindings; tweaks.
Diffstat (limited to 'background_scripts/commands.coffee')
-rw-r--r--background_scripts/commands.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee
index 46869451..a36b0c7e 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -1,5 +1,5 @@
Commands =
- init: () ->
+ init: ->
for own command, description of commandDescriptions
@addCommand(command, description[0], description[1])
@loadKeyMappings Settings.get "keyMappings"
@@ -115,7 +115,7 @@ Commands =
if currentMapping[key]?.command
break # Do not overwrite existing command bindings, they take priority.
else if 0 < keys.length
- currentMapping = (currentMapping[key] ?= {})
+ currentMapping = currentMapping[key] ?= {}
else
currentMapping[key] = registryEntry
chrome.storage.local.set normalModeKeyStateMapping: keyStateMapping