mirror of https://github.com/logseq/logseq
enhance: clear text selection when blocks are selected
parent
88d4dea61f
commit
9dce190204
|
@ -1787,7 +1787,8 @@
|
||||||
(assoc mouse-down-key (fn [e]
|
(assoc mouse-down-key (fn [e]
|
||||||
(block-content-on-mouse-down e block block-id properties content format edit-input-id))))]
|
(block-content-on-mouse-down e block block-id properties content format edit-input-id))))]
|
||||||
[:div.block-content.inline
|
[:div.block-content.inline
|
||||||
(cond-> {:id (str "block-content-" uuid)}
|
(cond-> {:id (str "block-content-" uuid)
|
||||||
|
:on-mouse-up util/clear-selection!}
|
||||||
(not slide?)
|
(not slide?)
|
||||||
(merge attrs))
|
(merge attrs))
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,7 @@
|
||||||
(let [roam-importing? (rum/react *roam-importing?)
|
(let [roam-importing? (rum/react *roam-importing?)
|
||||||
opml-importing? (rum/react *opml-importing?)]
|
opml-importing? (rum/react *opml-importing?)]
|
||||||
[:div#import
|
[:div#import
|
||||||
[:h1.title "Import JSON from Roam Research (experimental)"]
|
[:h1.title "Import JSON from Roam Research"]
|
||||||
[:p.text-sm.mb-8 "Export to Roam Research is coming!"]
|
|
||||||
|
|
||||||
[:input
|
[:input
|
||||||
{:id "import-roam"
|
{:id "import-roam"
|
||||||
|
|
Loading…
Reference in New Issue