diff --git a/src/components/search.tsx b/src/components/search.tsx index a138822..cddb36e 100644 --- a/src/components/search.tsx +++ b/src/components/search.tsx @@ -30,6 +30,7 @@ export const Searcher = () => { query: string; }>({ results: [], query: "" }); const searchInputRef = useRef(null); + const listboxRef = useRef(null); const { data: search, @@ -61,9 +62,7 @@ export const Searcher = () => { } if ( document.activeElement !== searchInputRef.current && - ((e.metaKey && e.key === "k") || !e.metaKey) && - !e.ctrlKey && - !e.altKey + ((e.metaKey && e.key === "k") || e.key === "/") ) { e.preventDefault(); searchInputRef.current?.focus(); @@ -91,7 +90,7 @@ export const Searcher = () => { return ( <> {/* Logo, title and search section */} -
+
RSS Quest Koala {
{/* Search results */} -
+
{isLoading ? (
Loading search index... @@ -134,11 +133,11 @@ export const Searcher = () => {
) : results.results.length > 0 ? ( console.log(key)} > {results.results.map((result) => ( - -
{children}
+ +
{children}