✏️ Fix keyboard shortcut labels for Windows and Linux

This commit is contained in:
Nate Sesti 2024-01-21 20:51:43 -08:00
parent f32859afb6
commit baba9ad45e
4 changed files with 6 additions and 7 deletions

View file

@ -124,7 +124,7 @@
{
"command": "continue.newSession",
"category": "Continue",
"title": "New Session (⌘ M)",
"title": "New Session",
"icon": "$(add)"
},
{

View file

@ -88,7 +88,7 @@ export function getMetaKeyLabel() {
case "windows":
return "^";
default:
return "⌘";
return "^";
}
}

View file

@ -1,7 +1,6 @@
import {
Cog6ToothIcon,
QuestionMarkCircleIcon,
SparklesIcon,
} from "@heroicons/react/24/outline";
import { postToIde } from "core/ide/messaging";
import { useEffect, useState } from "react";
@ -201,7 +200,7 @@ const Layout = () => {
<DropdownPortalDiv id="model-select-top-div"></DropdownPortalDiv>
<Footer>
<div className="mr-auto flex gap-2 items-center">
{localStorage.getItem("ide") === "jetbrains" ||
{/* {localStorage.getItem("ide") === "jetbrains" ||
localStorage.getItem("hideFeature") === "true" || (
<SparklesIcon
className="cursor-pointer"
@ -211,7 +210,7 @@ const Layout = () => {
onMouseEnter={() => {
dispatch(
setBottomMessage(
"🎁 New Feature: Use ⌘⇧R automatically debug errors in the terminal (you can click the sparkle icon to make it go away)"
`🎁 New Feature: Use ${getMetaKeyLabel()}⇧R automatically debug errors in the terminal (you can click the sparkle icon to make it go away)`
)
);
}}
@ -228,7 +227,7 @@ const Layout = () => {
height="1.3em"
color="yellow"
/>
)}
)} */}
<ModelSelect />
{indexingProgress >= 1 && // Would take up too much space together with indexing progress
defaultModel?.providerName === "free-trial" &&

View file

@ -38,7 +38,7 @@ export function getMetaKeyLabel(): string {
case "windows":
return "^";
default:
return "⌘";
return "^";
}
}