mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01: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
@ -28,7 +28,11 @@ function convertKey(platform: Platform, key: string): [any, string, boolean] {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (key == "Ctrl") {
|
if (key == "Ctrl") {
|
||||||
|
if (platform === "mac") {
|
||||||
return ["⌃", "Control", true];
|
return ["⌃", "Control", true];
|
||||||
|
} else {
|
||||||
|
return ["Ctrl", "Control", false];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (key == "Shift") {
|
if (key == "Shift") {
|
||||||
return ["⇧", "Shift", true];
|
return ["⇧", "Shift", true];
|
||||||
|
Loading…
Reference in New Issue
Block a user