From dbabfd2aca1024c724ec6bd39ba15ddf44afeb62 Mon Sep 17 00:00:00 2001 From: tusharmagar Date: Tue, 20 Jan 2026 20:11:21 +0530 Subject: [PATCH] Add keyboard shortcut (Ctrl+L) to open main chat view and update UI with shortcut indication --- apps/x/apps/renderer/src/App.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/apps/x/apps/renderer/src/App.tsx b/apps/x/apps/renderer/src/App.tsx index 9848b286..b5569277 100644 --- a/apps/x/apps/renderer/src/App.tsx +++ b/apps/x/apps/renderer/src/App.tsx @@ -1032,6 +1032,18 @@ function App() { setIsGraphOpen(false) }, []) + // Keyboard shortcut: Ctrl+L to open main chat view + useEffect(() => { + const handleKeyDown = (e: KeyboardEvent) => { + if ((e.ctrlKey || e.metaKey) && e.key === 'l') { + e.preventDefault() + handleOpenFullScreenChat() + } + } + document.addEventListener('keydown', handleKeyDown) + return () => document.removeEventListener('keydown', handleKeyDown) + }, [handleOpenFullScreenChat]) + const toggleExpand = (path: string, kind: 'file' | 'dir') => { if (kind === 'file') { setSelectedPath(path) @@ -1513,6 +1525,11 @@ function App() {
Rowboat
+
+ + L + to open chat from anywhere +
) : ( <>