aboutsummaryrefslogtreecommitdiff
path: root/ext/js/input
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-08 06:57:52 -0500
committerGitHub <noreply@github.com>2024-02-08 11:57:52 +0000
commit48a51dfd541ec6fa68ffd501de0e280ba0fd7a21 (patch)
treedfed44316e9f6b2dfbd977f04105bf2f78ef11b5 /ext/js/input
parent3486c0a96c477d1d5ec66c947bb7e94b44c8554a (diff)
Fix hotkey helper not properly returning attributesArray (#651)
Diffstat (limited to 'ext/js/input')
-rw-r--r--ext/js/input/hotkey-help-controller.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/input/hotkey-help-controller.js b/ext/js/input/hotkey-help-controller.js
index a75ab9db..dbb430dc 100644
--- a/ext/js/input/hotkey-help-controller.js
+++ b/ext/js/input/hotkey-help-controller.js
@@ -151,7 +151,7 @@ export class HotkeyHelpController {
if (typeof hotkey !== 'string') { return null; }
const data = /** @type {unknown} */ (parseJson(hotkey));
if (!Array.isArray(data)) { return null; }
- const [action, attributes, values] = data;
+ const [action, attributes, values] = /** @type {unknown[]} */ (data);
if (typeof action !== 'string') { return null; }
/** @type {string[]} */
const attributesArray = [];
@@ -169,7 +169,7 @@ export class HotkeyHelpController {
return {
action: global ? action.substring(globalPrexix.length) : action,
global,
- attributes,
+ attributes: attributesArray,
values,
defaultAttributeValues
};