aboutsummaryrefslogtreecommitdiff
path: root/ext/js/input
diff options
context:
space:
mode:
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
};