Fixed internal keyboard shortcuts for macos

This commit is contained in:
mauro-balades 2024-10-05 18:42:24 +02:00
parent fc7f08c827
commit 9f32f780ca
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB

View file

@ -795,6 +795,10 @@ var gZenKeyboardShortcutsManager = {
const children = mainKeyset.children;
for (let i = children.length - 1; i >= 0; i--) {
let key = children[i];
// Do NOT remove the internal keys
if (key.getAttribute('internal') == 'true') {
continue;
}
key.remove();
}
if (mainKeyset.children.length > 0) {
@ -802,7 +806,7 @@ var gZenKeyboardShortcutsManager = {
}
for (let key of this._currentShortcutList) {
if (key.isEmpty()) {
if (key.isEmpty() || key.isInternal()) {
continue;
}
let child = key.toXHTMLElement(browser);