Make Control key on Windows/Linux docs Ctrl rather than ^ (#1320)

`^` is a mac concept, not generic
This commit is contained in:
Evan Simkowitz 2024-11-19 13:10:05 -08:00 committed by GitHub
parent 416ba8d5da
commit 7734d5dd30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,7 +28,11 @@ function convertKey(platform: Platform, key: string): [any, string, boolean] {
} }
} }
if (key == "Ctrl") { if (key == "Ctrl") {
return ["⌃", "Control", true]; if (platform === "mac") {
return ["⌃", "Control", true];
} else {
return ["Ctrl", "Control", false];
}
} }
if (key == "Shift") { if (key == "Shift") {
return ["⇧", "Shift", true]; return ["⇧", "Shift", true];