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: command + N does not work (#6890)

Louis1b7ee7773c92
diff --git a/web-app/src/providers/KeyboardShortcuts.tsx b/web-app/src/providers/KeyboardShortcuts.tsx
index 99eeb988c..e405ef5f3 100644
--- a/web-app/src/providers/KeyboardShortcuts.tsx
+++ b/web-app/src/providers/KeyboardShortcuts.tsx
@@ -26,7 +26,9 @@ export function KeyboardShortcutsProvider() {
...newChatShortcut,
excludeRoutes: [route.home],
callback: () => {
- router.navigate({ to: route.home })
+ requestAnimationFrame(() => {
+ router.navigate({ to: route.home })
+ })
},
})