mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-06 06:58:21 +00:00
Make Control key on Windows/Linux docs Ctrl rather than ^ (#1320)
`^` is a mac concept, not generic
This commit is contained in:
parent
416ba8d5da
commit
7734d5dd30
1 changed files with 5 additions and 1 deletions
|
|
@ -28,7 +28,11 @@ function convertKey(platform: Platform, key: string): [any, string, boolean] {
|
|||
}
|
||||
}
|
||||
if (key == "Ctrl") {
|
||||
return ["⌃", "Control", true];
|
||||
if (platform === "mac") {
|
||||
return ["⌃", "Control", true];
|
||||
} else {
|
||||
return ["Ctrl", "Control", false];
|
||||
}
|
||||
}
|
||||
if (key == "Shift") {
|
||||
return ["⇧", "Shift", true];
|
||||
|
|
|
|||
Loading…
Reference in a new issue