enhance: loosen up check for cut and delete

This commit is contained in:
Konstantinos Kaloutas
2023-04-26 16:55:17 +03:00
parent e06e5eda3c
commit c0bdb228f0

View File

@@ -3178,7 +3178,7 @@
(gdom/getElement (state/get-edit-input-id))))
(keydown-backspace-handler true e)
(whiteboard?)
(state/whiteboard-route?)
(.cut (state/active-tldraw-app))
:else
@@ -3190,7 +3190,7 @@
(state/selection?)
(shortcut-delete-selection e)
(whiteboard?)
(state/whiteboard-route?)
(.deleteShapes (.-api ^js (state/active-tldraw-app)))
:else