Merge pull request #3478 from continuedev/pe/meta-key-update

feat: render a "Ctrl" instead of "^" for non-macOS
This commit is contained in:
Patrick Erichsen 2024-12-20 10:17:20 -08:00 • committed by GitHub
commit e00f2b026c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {