mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-02 19:42:40 +00:00
feat: Show shift and alt after ctrl or meta, b=no-bug, c=kbs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user