fix: firefox bug (#3948)

pull/3951/head
Arik Chakma 2 years ago committed by GitHub
parent 591cac8bfa
commit 205fe6cc23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      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();
}
};

Loading…
Cancel
Save