summaryrefslogtreecommitdiff
path: root/ext/js/input
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/input')
-rw-r--r--ext/js/input/hotkey-handler.js4
-rw-r--r--ext/js/input/hotkey-help-controller.js2
-rw-r--r--ext/js/input/hotkey-util.js10
3 files changed, 8 insertions, 8 deletions
diff --git a/ext/js/input/hotkey-handler.js b/ext/js/input/hotkey-handler.js
index 601a87c9..eacb76bd 100644
--- a/ext/js/input/hotkey-handler.js
+++ b/ext/js/input/hotkey-handler.js
@@ -52,7 +52,7 @@ export class HotkeyHandler extends EventDispatcher {
this._isPrepared = true;
this._updateEventHandlers();
crossFrameApi.registerHandlers([
- ['hotkeyHandlerForwardHotkey', this._onMessageForwardHotkey.bind(this)]
+ ['hotkeyHandlerForwardHotkey', this._onMessageForwardHotkey.bind(this)],
]);
}
@@ -114,7 +114,7 @@ export class HotkeyHandler extends EventDispatcher {
key,
modifiers: [...modifiers],
scopes: [...scopes],
- enabled
+ enabled,
});
}
this._updateHotkeyRegistrations();
diff --git a/ext/js/input/hotkey-help-controller.js b/ext/js/input/hotkey-help-controller.js
index f85735fc..6b0cfa10 100644
--- a/ext/js/input/hotkey-help-controller.js
+++ b/ext/js/input/hotkey-help-controller.js
@@ -180,7 +180,7 @@ export class HotkeyHelpController {
global,
attributes: attributesArray,
values,
- defaultAttributeValues
+ defaultAttributeValues,
};
}
diff --git a/ext/js/input/hotkey-util.js b/ext/js/input/hotkey-util.js
index bb3e82a8..e4392e27 100644
--- a/ext/js/input/hotkey-util.js
+++ b/ext/js/input/hotkey-util.js
@@ -38,7 +38,7 @@ export class HotkeyUtil {
['meta', -4],
['ctrl', -3],
['alt', -2],
- ['shift', -1]
+ ['shift', -1],
]);
/** @type {Intl.Collator} */
this._stringComparer = new Intl.Collator('en-US'); // Invariant locale
@@ -243,14 +243,14 @@ export class HotkeyUtil {
['alt', 'Alt'],
['ctrl', 'Ctrl'],
['shift', 'Shift'],
- ['meta', 'Windows']
+ ['meta', 'Windows'],
];
case 'mac':
return [
['alt', 'Opt'],
['ctrl', 'Ctrl'],
['shift', 'Shift'],
- ['meta', 'Cmd']
+ ['meta', 'Cmd'],
];
case 'linux':
case 'openbsd':
@@ -260,14 +260,14 @@ export class HotkeyUtil {
['alt', 'Alt'],
['ctrl', 'Ctrl'],
['shift', 'Shift'],
- ['meta', 'Super']
+ ['meta', 'Super'],
];
default: // 'unknown', etc
return [
['alt', 'Alt'],
['ctrl', 'Ctrl'],
['shift', 'Shift'],
- ['meta', 'Meta']
+ ['meta', 'Meta'],
];
}
}