Skip to content

Commit 7734d5d

Browse files
authored
Make Control key on Windows/Linux docs Ctrl rather than ^ (#1320)
`^` is a mac concept, not generic
1 parent 416ba8d commit 7734d5d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/src/components/kbd.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ function convertKey(platform: Platform, key: string): [any, string, boolean] {
2828
}
2929
}
3030
if (key == "Ctrl") {
31-
return ["⌃", "Control", true];
31+
if (platform === "mac") {
32+
return ["⌃", "Control", true];
33+
} else {
34+
return ["Ctrl", "Control", false];
35+
}
3236
}
3337
if (key == "Shift") {
3438
return ["⇧", "Shift", true];

0 commit comments

Comments
 (0)