Skip to content

Commit 7b5348a

Browse files
committed
feat: Show shift and alt after ctrl or meta, b=no-bug, c=kbs
1 parent a742603 commit 7b5348a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/zen/kbs/ZenKeyboardShortcuts.mjs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,6 @@ class nsKeyShortcutModifiers {
200200
str += AppConstants.platform == 'macosx' ? '⌃' : 'Ctrl';
201201
str += separation;
202202
}
203-
if (this.#alt) {
204-
str += AppConstants.platform == 'macosx' ? '⌥' : 'Alt';
205-
str += separation;
206-
}
207-
if (this.#shift) {
208-
str += '⇧';
209-
str += separation;
210-
}
211203
if (this.#meta) {
212204
str += AppConstants.platform == 'macosx' ? '⌘' : 'Win';
213205
str += separation;
@@ -216,6 +208,15 @@ class nsKeyShortcutModifiers {
216208
str += AppConstants.platform == 'macosx' ? '⌘' : 'Ctrl';
217209
str += separation;
218210
}
211+
212+
if (this.#alt) {
213+
str += AppConstants.platform == 'macosx' ? '⌥' : 'Alt';
214+
str += separation;
215+
}
216+
if (this.#shift) {
217+
str += '⇧';
218+
str += separation;
219+
}
219220
return str;
220221
}
221222

0 commit comments

Comments
 (0)