mirror of
https://github.com/zen-browser/desktop.git
synced 2026-03-30 04:11:51 +00:00
fix: Fixed KBS settings page, b=no-bug, c=kbs
This commit is contained in:
@@ -8,6 +8,10 @@ const { nsZenMultiWindowFeature } = ChromeUtils.importESModule(
|
||||
{ global: 'current' }
|
||||
);
|
||||
|
||||
ChromeUtils.importESModule('chrome://browser/content/zen-components/ZenKeyboardShortcuts.mjs', {
|
||||
global: 'current',
|
||||
});
|
||||
|
||||
var gZenMarketplaceManager = {
|
||||
async init() {
|
||||
const checkForUpdates = document.getElementById('zenThemeMarketplaceCheckForUpdates');
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
<script type="module" src="chrome://browser/content/zen-components/ZenKeyboardShortcuts.mjs"/>
|
||||
<html:template id="template-paneZenCKS">
|
||||
<hbox id="ZenCKSCategory"
|
||||
class="subcategory"
|
||||
|
||||
@@ -132,7 +132,7 @@ const ZEN_WORKSPACE_SHORTCUTS_GROUP = 'zen-workspace';
|
||||
const ZEN_OTHER_SHORTCUTS_GROUP = 'zen-other';
|
||||
const ZEN_SPLIT_VIEW_SHORTCUTS_GROUP = 'zen-split-view';
|
||||
const FIREFOX_SHORTCUTS_GROUP = 'zen-kbs-invalid';
|
||||
const VALID_SHORTCUT_GROUPS = [
|
||||
window.VALID_SHORTCUT_GROUPS = [
|
||||
ZEN_COMPACT_MODE_SHORTCUTS_GROUP,
|
||||
ZEN_WORKSPACE_SHORTCUTS_GROUP,
|
||||
ZEN_SPLIT_VIEW_SHORTCUTS_GROUP,
|
||||
@@ -322,7 +322,7 @@ class KeyShortcut {
|
||||
this.#key = key?.toLowerCase();
|
||||
this.#keycode = keycode;
|
||||
|
||||
if (!VALID_SHORTCUT_GROUPS.includes(group)) {
|
||||
if (!window.VALID_SHORTCUT_GROUPS.includes(group)) {
|
||||
throw new Error('Illegal group value: ' + group);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user