diff --git a/src/browser/App.tsx b/src/browser/App.tsx index 35ec5be1ca..056c756be2 100644 --- a/src/browser/App.tsx +++ b/src/browser/App.tsx @@ -446,6 +446,12 @@ function AppInner() { } else if (matchesKeybind(e, KEYBINDS.OPEN_SETTINGS)) { e.preventDefault(); openSettings(); + } else if (matchesKeybind(e, KEYBINDS.FOCUS_CHAT)) { + // Focus creation chat when on new chat page (no workspace selected) + if (creationProjectPath && creationChatInputRef.current) { + e.preventDefault(); + creationChatInputRef.current.focus(); + } } }; @@ -457,6 +463,7 @@ function AppInner() { isCommandPaletteOpen, closeCommandPalette, openCommandPalette, + creationProjectPath, openSettings, ]);