fix: add preventDefault
(#764)
This commit is contained in:
parent
780da17540
commit
141dd2672e
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue