Summary
desktop/src/components/command/CommandPalette.tsx already handles Escape/ArrowUp/ArrowDown/Enter once open (lines ~46-52), but there is no global keyboard shortcut to OPEN it.
Goal
Add a global keydown listener that opens the command palette on Ctrl+K (Windows/Linux) or Cmd+K (macOS). The listener should live in the component that mounts the palette (e.g. App or LeftSidebar), and should be cleaned up on unmount.
Tasks
- Add a keydown listener for \metaKey || ctrlKey + 'k'\
- Call \e.preventDefault()\ to avoid browser defaults
- Open the palette; guard against double-opening if already open
- Add/extend a Vitest test for the shortcut
Acceptance criteria
Labels
good first issue, help wanted
Summary
desktop/src/components/command/CommandPalette.tsx already handles Escape/ArrowUp/ArrowDown/Enter once open (lines ~46-52), but there is no global keyboard shortcut to OPEN it.
Goal
Add a global keydown listener that opens the command palette on Ctrl+K (Windows/Linux) or Cmd+K (macOS). The listener should live in the component that mounts the palette (e.g. App or LeftSidebar), and should be cleaned up on unmount.
Tasks
Acceptance criteria
Labels
good first issue, help wanted