mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
refactor: selection state
This commit is contained in:
@@ -549,6 +549,11 @@
|
||||
[]
|
||||
(:selection/mode @state))
|
||||
|
||||
(defn selection?
|
||||
"True sense of selection mode with valid selected block"
|
||||
[]
|
||||
(and (in-selection-mode?) (seq (get-selection-blocks))))
|
||||
|
||||
(defn conj-selection-block!
|
||||
[block direction]
|
||||
(dom/add-class! block "selected noselect")
|
||||
|
||||
Reference in New Issue
Block a user