aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/keyboard-shortcuts-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/pages/settings/keyboard-shortcuts-controller.js')
-rw-r--r--ext/js/pages/settings/keyboard-shortcuts-controller.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/ext/js/pages/settings/keyboard-shortcuts-controller.js b/ext/js/pages/settings/keyboard-shortcuts-controller.js
index a6d23d82..fd8bd471 100644
--- a/ext/js/pages/settings/keyboard-shortcuts-controller.js
+++ b/ext/js/pages/settings/keyboard-shortcuts-controller.js
@@ -71,7 +71,7 @@ export class KeyboardShortcutController {
['scanSelectedText', {scopes: new Set(['web'])}],
['scanTextAtSelection', {scopes: new Set(['web'])}],
['scanTextAtCaret', {scopes: new Set(['web'])}],
- ['toggleOption', {scopes: new Set(['popup', 'search']), argument: {template: 'hotkey-argument-setting-path', default: ''}}]
+ ['toggleOption', {scopes: new Set(['popup', 'search']), argument: {template: 'hotkey-argument-setting-path', default: ''}}],
]);
/* eslint-enable @stylistic/no-multi-spaces */
}
@@ -105,7 +105,7 @@ export class KeyboardShortcutController {
path: 'inputs.hotkeys',
start: hotkeys.length,
deleteCount: 0,
- items: [terminationCharacterEntry]
+ items: [terminationCharacterEntry],
}]);
await this._updateOptions();
@@ -128,7 +128,7 @@ export class KeyboardShortcutController {
path: 'inputs.hotkeys',
start: index,
deleteCount: 1,
- items: []
+ items: [],
}]);
await this._updateOptions();
@@ -214,7 +214,7 @@ export class KeyboardShortcutController {
key: null,
modifiers: [],
scopes: ['popup', 'search'],
- enabled: true
+ enabled: true,
};
await this.addEntry(newEntry);
}
@@ -460,13 +460,13 @@ class KeyboardShortcutHotkeyEntry {
{
action: 'set',
path: `${this._basePath}.key`,
- value: key
+ value: key,
},
{
action: 'set',
path: `${this._basePath}.modifiers`,
- value: modifiers
- }
+ value: modifiers,
+ },
]);
}
@@ -490,7 +490,7 @@ class KeyboardShortcutHotkeyEntry {
await this._modifyProfileSettings([{
action: 'set',
path: `${this._basePath}.scopes`,
- value: scopes
+ value: scopes,
}]);
this._updateScopesButton();
@@ -580,18 +580,18 @@ class KeyboardShortcutHotkeyEntry {
{
action: 'set',
path: `${this._basePath}.action`,
- value: this._data.action
+ value: this._data.action,
},
{
action: 'set',
path: `${this._basePath}.argument`,
- value: this._data.argument
+ value: this._data.argument,
},
{
action: 'set',
path: `${this._basePath}.scopes`,
- value: this._data.scopes
- }
+ value: this._data.scopes,
+ },
]);
this._updateScopesButton();
@@ -615,7 +615,7 @@ class KeyboardShortcutHotkeyEntry {
await this._modifyProfileSettings([{
action: 'set',
path: `${this._basePath}.argument`,
- value
+ value,
}]);
}