Temporarily disable search for launch (#1989)

This commit is contained in:
Zane
2025-04-01 13:31:15 -07:00
committed by GitHub
parent 052e96cb69
commit 974d109fb3
@@ -32,19 +32,21 @@ export const SearchView: React.FC<PropsWithChildren<SearchViewProps>> = ({
const highlighterRef = React.useRef<SearchHighlighter | null>(null);
const containerRef = React.useRef<HTMLDivElement | null>(null);
useEffect(() => {
const handleKeyDown = (e: KeyboardEvent) => {
if ((e.metaKey || e.ctrlKey) && e.key === 'f') {
e.preventDefault();
setIsSearchVisible(true);
}
};
window.addEventListener('keydown', handleKeyDown);
return () => {
window.removeEventListener('keydown', handleKeyDown);
};
}, []);
// temporarily disabling search for launch until issue https://github.com/block/goose/issues/1984 is resolved
//
// useEffect(() => {
// const handleKeyDown = (e: KeyboardEvent) => {
// if ((e.metaKey || e.ctrlKey) && e.key === 'f') {
// e.preventDefault();
// setIsSearchVisible(true);
// }
// };
//
// window.addEventListener('keydown', handleKeyDown);
// return () => {
// window.removeEventListener('keydown', handleKeyDown);
// };
// }, []);
const handleSearch = (term: string, caseSensitive: boolean) => {
if (!term) {