diff --git a/src/components/widgets/search/search.jsx b/src/components/widgets/search/search.jsx index 6a634308..21c933d2 100644 --- a/src/components/widgets/search/search.jsx +++ b/src/components/widgets/search/search.jsx @@ -119,6 +119,13 @@ export default function Search({ options }) { }; }, [selectedProvider, options, query, searchSuggestions]); + const handleSearchKeyDown = (event) => { + if (event.key === "Tab") { + // TODO: add actual tab complete + event.preventDefault(); + } + }; + const submitCallback = useCallback( (value) => { const q = encodeURIComponent(value); @@ -167,6 +174,7 @@ export default function Search({ options }) { autoComplete="off" // eslint-disable-next-line jsx-a11y/no-autofocus autoFocus={options.focus} + onKeyDown={handleSearchKeyDown} />