diff --git a/src/InternalEvents.tsx b/src/InternalEvents.tsx index 894a767..38075ce 100644 --- a/src/InternalEvents.tsx +++ b/src/InternalEvents.tsx @@ -53,8 +53,8 @@ function useToggleHandler() { } } - window.addEventListener("keydown", handleKeyDown, true); - return () => window.removeEventListener("keydown", handleKeyDown, true); + window.addEventListener("keydown", handleKeyDown); + return () => window.removeEventListener("keydown", handleKeyDown); }, [options.callbacks, query, showing]); const timeoutRef = React.useRef();