From f0eaaaad5eea7472d72d5b5b4b5a92f33c8afbfb Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 22 Apr 2024 02:13:30 +0100 Subject: [PATCH] fix command menu keyboard shortcuts --- src/app/components/command-menu.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/components/command-menu.tsx b/src/app/components/command-menu.tsx index db186df..13b9b37 100644 --- a/src/app/components/command-menu.tsx +++ b/src/app/components/command-menu.tsx @@ -45,6 +45,7 @@ export function CommandMenu({ ...props }: ButtonProps): ReactElement { } }; + document.addEventListener("keydown", down); return () => document.removeEventListener("keydown", down); }, []);