feat: Show shift and alt after ctrl or meta, b=no-bug, c=kbs

This commit is contained in:
mr. m
2025-11-12 01:35:26 +01:00
parent a742603f54
commit 7b5348ad40

View File

@@ -200,14 +200,6 @@ class nsKeyShortcutModifiers {
str += AppConstants.platform == 'macosx' ? '⌃' : 'Ctrl';
str += separation;
}
if (this.#alt) {
str += AppConstants.platform == 'macosx' ? '⌥' : 'Alt';
str += separation;
}
if (this.#shift) {
str += '⇧';
str += separation;
}
if (this.#meta) {
str += AppConstants.platform == 'macosx' ? '⌘' : 'Win';
str += separation;
@@ -216,6 +208,15 @@ class nsKeyShortcutModifiers {
str += AppConstants.platform == 'macosx' ? '⌘' : 'Ctrl';
str += separation;
}
if (this.#alt) {
str += AppConstants.platform == 'macosx' ? '⌥' : 'Alt';
str += separation;
}
if (this.#shift) {
str += '⇧';
str += separation;
}
return str;
}