diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 6d36267..5ea450c 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -67,7 +67,7 @@ export default function App() { navigate(`/search?q=${encodeURIComponent(q)}`)} /> )} diff --git a/frontend/src/components/SearchAutocomplete.tsx b/frontend/src/components/SearchAutocomplete.tsx index f3f8de2..bd0460e 100644 --- a/frontend/src/components/SearchAutocomplete.tsx +++ b/frontend/src/components/SearchAutocomplete.tsx @@ -24,7 +24,7 @@ interface SearchAutocompleteProps { variant?: 'hero' | 'inline' | 'nav'; initialQuery?: string; autoFocus?: boolean; - /** When true, Cmd+K / Ctrl+K focuses the input globally */ + /** When true, Ctrl+Shift+F focuses the input globally */ globalShortcut?: boolean; } @@ -72,11 +72,11 @@ export default function SearchAutocomplete({ if (autoFocus) inputRef.current?.focus(); }, [autoFocus]); - // Global Cmd+K / Ctrl+K shortcut to focus input + // Global Ctrl+Shift+F shortcut to focus input useEffect(() => { if (!globalShortcut) return; function handleGlobalKey(e: KeyboardEvent) { - if (e.key === "k" && (e.metaKey || e.ctrlKey)) { + if (e.key === "F" && e.ctrlKey && e.shiftKey) { e.preventDefault(); inputRef.current?.focus(); } @@ -188,7 +188,7 @@ export default function SearchAutocomplete({ )} {variant === 'nav' && ( - ⌘K + Ctrl⇧F )}