From f2bced459457dcc962d4bafe2fdf2e6245506ee3 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 28 Feb 2016 16:07:25 +0000 Subject: Key bindings; tweaks. --- background_scripts/commands.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'background_scripts') 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 -- cgit v1.2.3