enhance: don't clear selection after copied

close #1733
This commit is contained in:
Tienson Qin
2021-05-08 22:12:16 +08:00
parent 701f4facfd
commit 2e0c241ba6

View File

@@ -926,7 +926,8 @@
[content tree] (compose-copied-blocks-contents-&-block-tree repo ids)
block (db/pull [:block/uuid (first ids)])]
(common-handler/copy-to-clipboard-without-id-property! (:block/format block) content)
(state/set-copied-blocks content tree))))
(state/set-copied-blocks content tree)
(notification/show! "Copied!" :success))))
(defn cut-selection-blocks
[copy?]
@@ -2444,8 +2445,7 @@
(defn shortcut-copy-selection
[e]
(copy-selection-blocks)
(clear-selection! nil))
(copy-selection-blocks))
(defn shortcut-cut-selection
[e]