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: new chat shortcut stopped working (#6915)

Louis3e69705c7cfa
diff --git a/web-app/src/providers/KeyboardShortcuts.tsx b/web-app/src/providers/KeyboardShortcuts.tsx
index e405ef5f3..a49e733aa 100644
--- a/web-app/src/providers/KeyboardShortcuts.tsx
+++ b/web-app/src/providers/KeyboardShortcuts.tsx
@@ -24,11 +24,8 @@ export function KeyboardShortcutsProvider() {
// New Chat
useKeyboardShortcut({
...newChatShortcut,
- excludeRoutes: [route.home],
callback: () => {
- requestAnimationFrame(() => {
- router.navigate({ to: route.home })
- })
+ router.navigate({ to: route.home })
},
})