mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 22:29:59 +02:00
Refactor KeyShortcutModifiers to fix control key behavior
This commit is contained in:
parent
f108074b81
commit
89b572e8fe
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue