diff --git a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx index cbdad01519..d03c1e3db4 100644 --- a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx +++ b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx @@ -2,9 +2,7 @@ import './QueryBuilderSearch.styles.scss'; import { Select, Spin, Tag, Tooltip } from 'antd'; import { OPERATORS } from 'constants/queryBuilder'; -import { LogsExplorerShortcuts } from 'constants/shortcuts/logsExplorerShortcuts'; import { getDataTypes } from 'container/LogDetailedView/utils'; -import { useKeyboardHotkeys } from 'hooks/hotkeys/useKeyboardHotkeys'; import { useAutoComplete, WhereClauseConfig, @@ -77,8 +75,6 @@ function QueryBuilderSearch({ searchKey, ); - const { registerShortcut, deregisterShortcut } = useKeyboardHotkeys(); - const { handleRunQuery } = useQueryBuilder(); const onTagRender = ({ @@ -204,18 +200,6 @@ function QueryBuilderSearch({ /* eslint-disable react-hooks/exhaustive-deps */ }, [sourceKeys]); - useEffect(() => { - registerShortcut(LogsExplorerShortcuts.FocusTheSearchBar, () => { - // set timeout is needed here else the select treats the hotkey as input value - setTimeout(() => { - selectRef.current?.focus(); - }, 0); - }); - - return (): void => - deregisterShortcut(LogsExplorerShortcuts.FocusTheSearchBar); - }, []); - return (