From 7734d5dd302cfd525f37bda33d43bf6e95f020fc Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Tue, 19 Nov 2024 13:10:05 -0800 Subject: [PATCH] Make Control key on Windows/Linux docs Ctrl rather than ^ (#1320) `^` is a mac concept, not generic --- docs/src/components/kbd.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/src/components/kbd.tsx b/docs/src/components/kbd.tsx index b4de641b0..69fee9ebf 100644 --- a/docs/src/components/kbd.tsx +++ b/docs/src/components/kbd.tsx @@ -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];