chore: Small fixes for testing, b=(no-bug), c=kbs, split-view, tests, workspaces

This commit is contained in:
Mr. M
2025-05-04 23:17:17 +02:00
parent 05df28ae72
commit 13923b84f2
9 changed files with 21 additions and 5 deletions

View File

@@ -808,6 +808,8 @@ var zenMissingKeyboardShortcutL10n = {
key_accessibility: 'zen-devtools-toggle-accessibility-shortcut',
};
var zenIgnoreKeyboardShortcutL10n = ['zen-full-zoom-reduce-shortcut-alt-b', 'zen-full-zoom-reduce-shortcut-alt-a'];
var gZenCKSSettings = {
async init() {
await this._initializeCKS();
@@ -871,6 +873,10 @@ var gZenCKSSettings = {
const labelValue = zenMissingKeyboardShortcutL10n[keyID] ?? l10nID;
if (zenIgnoreKeyboardShortcutL10n.includes(labelValue)) {
continue;
}
let fragment = window.MozXULElement.parseXULToFragment(`
<hbox class="${ZEN_CKS_CLASS_BASE}">
<label class="${ZEN_CKS_LABEL_CLASS}" for="${ZEN_CKS_CLASS_BASE}-${keyID}"></label>