mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 20:09:57 +02:00
Fixed internal keyboard shortcuts for macos
This commit is contained in:
parent
fc7f08c827
commit
9f32f780ca
1 changed files with 5 additions and 1 deletions
|
@ -795,6 +795,10 @@ var gZenKeyboardShortcutsManager = {
|
||||||
const children = mainKeyset.children;
|
const children = mainKeyset.children;
|
||||||
for (let i = children.length - 1; i >= 0; i--) {
|
for (let i = children.length - 1; i >= 0; i--) {
|
||||||
let key = children[i];
|
let key = children[i];
|
||||||
|
// Do NOT remove the internal keys
|
||||||
|
if (key.getAttribute('internal') == 'true') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
key.remove();
|
key.remove();
|
||||||
}
|
}
|
||||||
if (mainKeyset.children.length > 0) {
|
if (mainKeyset.children.length > 0) {
|
||||||
|
@ -802,7 +806,7 @@ var gZenKeyboardShortcutsManager = {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let key of this._currentShortcutList) {
|
for (let key of this._currentShortcutList) {
|
||||||
if (key.isEmpty()) {
|
if (key.isEmpty() || key.isInternal()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
let child = key.toXHTMLElement(browser);
|
let child = key.toXHTMLElement(browser);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue