Merge pull request #3478 from continuedev/pe/meta-key-update
feat: render a "Ctrl" instead of "^" for non-macOS
This commit is contained in:
commit
e00f2b026c
1 changed files with 1 additions and 10 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue