fix: add preventDefault (#764)

This commit is contained in:
Mark Ladyshau 2022-06-27 19:55:47 +02:00 committed by GitHub
parent 780da17540
commit 141dd2672e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -250,7 +250,8 @@ export function useKeyboardShortcuts(ref: React.RefObject<HTMLDivElement>) {
useHotkeys(
'⌘+z,ctrl+z',
() => {
(e) => {
e.preventDefault();
if (!canHandleEvent(true)) return
if (app.session) {