Refactor KeyShortcutModifiers to fix control key behavior

This commit is contained in:
Mauro Baladés 2024-09-29 22:26:54 +03:00
parent f108074b81
commit 89b572e8fe

View file

@ -165,7 +165,7 @@ class KeyShortcutModifiers {
toUserString() {
let str = '';
if (this.#control || this.#accel) {
if (this.#control && !this.#accel) {
str += 'Ctrl+';
}
if (this.#alt) {
@ -177,6 +177,9 @@ class KeyShortcutModifiers {
if (this.#meta) {
str += AppConstants.platform == 'macosx' ? 'Cmd+' : 'Win+';
}
if (this.#accel) {
str += AppConstants.platform == 'macosx' ? 'Cmd+' : 'Ctrl+';
}
return str;
}