Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: wrong display shortcut create project

Faisal Amirb859948d1099
diff --git a/web-app/src/components/left-sidebar/NavMain.tsx b/web-app/src/components/left-sidebar/NavMain.tsx
index accc5a7a3..40bf32ecb 100644
--- a/web-app/src/components/left-sidebar/NavMain.tsx
+++ b/web-app/src/components/left-sidebar/NavMain.tsx
@@ -42,6 +42,7 @@ import { useAgentMode } from '@/hooks/useAgentMode'
import { TEMPORARY_CHAT_ID } from '@/constants/chat'
import { useAppState } from '@/hooks/useAppState'
import { isOpenClawRunning } from '@/utils/openclaw'
+import { PlatformShortcuts, ShortcutAction } from '@/lib/shortcuts'
type AnimatedIconHandle =
| SearchIconHandle
@@ -81,7 +82,7 @@ const getNavMainItems = (
<Kbd className="bg-transparent size-3">
<PlatformMetaKey />
</Kbd>
- <Kbd className="bg-transparent size-3">N</Kbd>
+ <Kbd className="bg-transparent size-3 uppercase">{PlatformShortcuts[ShortcutAction.NEW_CHAT].key}</Kbd>
</KbdGroup>
),
},
@@ -94,7 +95,7 @@ const getNavMainItems = (
<Kbd className="bg-transparent size-3">
<PlatformMetaKey />
</Kbd>
- <Kbd className="bg-transparent size-3">M</Kbd>
+ <Kbd className="bg-transparent size-3 uppercase">{PlatformShortcuts[ShortcutAction.NEW_AGENT_CHAT].key}</Kbd>
</KbdGroup>
),
},
@@ -107,7 +108,7 @@ const getNavMainItems = (
<Kbd className="bg-transparent size-3">
<PlatformMetaKey />
</Kbd>
- <Kbd className="bg-transparent size-3">L</Kbd>
+ <Kbd className="bg-transparent size-3 uppercase">{PlatformShortcuts[ShortcutAction.NEW_PROJECT].key}</Kbd>
</KbdGroup>
),
},
@@ -120,7 +121,7 @@ const getNavMainItems = (
<Kbd className="bg-transparent size-3">
<PlatformMetaKey />
</Kbd>
- <Kbd className="bg-transparent size-3">K</Kbd>
+ <Kbd className="bg-transparent size-3 uppercase">{PlatformShortcuts[ShortcutAction.SEARCH].key} </Kbd>
</KbdGroup>
),
},