From 7b5348ad40022ca6a6f400a8ea7bda44957206d9 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Wed, 12 Nov 2025 01:35:26 +0100 Subject: [PATCH] feat: Show shift and alt after ctrl or meta, b=no-bug, c=kbs --- src/zen/kbs/ZenKeyboardShortcuts.mjs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/zen/kbs/ZenKeyboardShortcuts.mjs b/src/zen/kbs/ZenKeyboardShortcuts.mjs index 777d1fbfe..04259eddb 100644 --- a/src/zen/kbs/ZenKeyboardShortcuts.mjs +++ b/src/zen/kbs/ZenKeyboardShortcuts.mjs @@ -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; }