From 205fe6cc23fe0e03b525bbae039b6c3b6064f38e Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Sun, 21 May 2023 17:27:38 +0600 Subject: [PATCH] fix: firefox bug (#3948) --- src/hooks/use-keydown.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hooks/use-keydown.ts b/src/hooks/use-keydown.ts index 86711e235..9d82fcc09 100644 --- a/src/hooks/use-keydown.ts +++ b/src/hooks/use-keydown.ts @@ -13,6 +13,7 @@ export function useKeydown(keyName: string, callback: any, deps: any[] = []) { event.metaKey && event.key.toLowerCase() === keyName.replace('mod_', '').toLowerCase() ) { + event.preventDefault(); callback(); } };