From c0b53b77f49fac06e640095c7474d39822bb0557 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 12 Dec 2021 21:44:38 -0800 Subject: [PATCH] Update InternalEvents.tsx (#139) --- src/InternalEvents.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();