fix: add default copy behavior

This commit is contained in:
Weihua Lu
2021-05-17 13:59:34 +08:00
parent eb7c26dd96
commit e218ef7491

View File

@@ -2552,7 +2552,10 @@
selected-end (.-selectionEnd input)]
(if (= selected-start selected-end)
(copy-current-block-ref)
(js/document.execCommand "copy"))))))
(js/document.execCommand "copy")))
:else
(js/document.execCommand "copy"))))
(defn shortcut-cut