fix: Fixed keyboard shortcuts not saving correctly, b=no-bug, c=kbs

This commit is contained in:
mr. m
2025-11-24 13:05:23 +01:00
parent 886b559b50
commit e500e04418
2 changed files with 7 additions and 4 deletions

View File

@@ -8,9 +8,12 @@ const { nsZenMultiWindowFeature } = ChromeUtils.importESModule(
{ global: 'current' }
);
ChromeUtils.importESModule('chrome://browser/content/zen-components/ZenKeyboardShortcuts.mjs', {
global: 'current',
});
const { nsKeyShortcutModifiers } = ChromeUtils.importESModule(
'chrome://browser/content/zen-components/ZenKeyboardShortcuts.mjs',
{
global: 'current',
}
);
var gZenMarketplaceManager = {
async init() {

View File

@@ -141,7 +141,7 @@ window.VALID_SHORTCUT_GROUPS = [
'other',
];
class nsKeyShortcutModifiers {
export class nsKeyShortcutModifiers {
#control = false;
#alt = false;
#shift = false;