fix: disallow cutting blocks when find in page

This commit is contained in:
Tienson Qin
2022-08-23 10:53:50 +08:00
parent b677d6f819
commit fac1180a07
5 changed files with 13 additions and 12 deletions

View File

@@ -2907,8 +2907,9 @@
(defn- cut-blocks-and-clear-selections!
[copy?]
(cut-selection-blocks copy?)
(clear-selection!))
(when-not (get-in @state/state [:ui/find-in-page :active?])
(cut-selection-blocks copy?)
(clear-selection!)))
(defn shortcut-copy-selection
[_e]