From b1c5beba6b377cd0eed11604790c28f9ca752224 Mon Sep 17 00:00:00 2001 From: Test Date: Fri, 20 Dec 2024 10:10:27 -0800 Subject: [PATCH] Update index.ts --- gui/src/util/index.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/gui/src/util/index.ts b/gui/src/util/index.ts index e4f4c7cb6..233589f34 100644 --- a/gui/src/util/index.ts +++ b/gui/src/util/index.ts @@ -34,16 +34,7 @@ export function isMetaEquivalentKeyPressed({ } export function getMetaKeyLabel(): string { - const platform = getPlatform(); - switch (platform) { - case "mac": - return "⌘"; - case "linux": - case "windows": - return "^"; - default: - return "^"; - } + return getPlatform() === "mac" ? "⌘" : "Ctrl"; } export function getAltKeyLabel(): string {