mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 15:39:58 +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() {
|
toUserString() {
|
||||||
let str = '';
|
let str = '';
|
||||||
if (this.#control || this.#accel) {
|
if (this.#control && !this.#accel) {
|
||||||
str += 'Ctrl+';
|
str += 'Ctrl+';
|
||||||
}
|
}
|
||||||
if (this.#alt) {
|
if (this.#alt) {
|
||||||
|
@ -177,6 +177,9 @@ class KeyShortcutModifiers {
|
||||||
if (this.#meta) {
|
if (this.#meta) {
|
||||||
str += AppConstants.platform == 'macosx' ? 'Cmd+' : 'Win+';
|
str += AppConstants.platform == 'macosx' ? 'Cmd+' : 'Win+';
|
||||||
}
|
}
|
||||||
|
if (this.#accel) {
|
||||||
|
str += AppConstants.platform == 'macosx' ? 'Cmd+' : 'Ctrl+';
|
||||||
|
}
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue