From 2673c7c6456155c256452df1a4102441c46d8b95 Mon Sep 17 00:00:00 2001 From: ortiza5 <43008712+ortiza5@users.noreply.github.com> Date: Sun, 14 Mar 2021 18:22:59 -0600 Subject: [PATCH] updated hotkey storage scheme to allow multiple --- js/background.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/js/background.js b/js/background.js index 9cd6c80..e2a120a 100644 --- a/js/background.js +++ b/js/background.js @@ -2,17 +2,17 @@ chrome.runtime.onInstalled.addListener(function () { let settings = { hotkeys: { codes: { - navUp: ["w"], - navLeft: ["a"], - navDown: ["s"], - navRight: ["d"], - expand: ["e"], - contract: ["shift", "e"], - quit: ["q"], - click: ["enter"], - shiftClick: ["shift", "enter"], - controlClick: ["control", "enter"], - disableKeys: ["control", "shift", "x"], + navUp: [["w"]], + navLeft: [["a"]], + navDown: [["s"]], + navRight: [["d"]], + expand: [["e"]], + contract: [["shift", "e"]], + quit: [["q"]], + click: [["f"], ["enter"]], + shiftClick: [["shift", "enter"]], + controlClick: [["control", "enter"]], + disableKeys: [["control", "shift", "x"]], }, }, };