Browse Source

Revert "enhance: loosen up check for cut and delete"

This reverts commit c0bdb228f0e7a2824698417c26cbffd5fd97a3b3.
Konstantinos Kaloutas 2 years ago
parent
commit
0997b771fa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/frontend/handler/editor.cljs

+ 2 - 2
src/main/frontend/handler/editor.cljs

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