mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 01:16:27 +00:00
fix: cursor moves to main area when using keyboard to delete blocks
in sidebar
This commit is contained in:
@@ -154,7 +154,6 @@
|
||||
:editor/in-composition? false
|
||||
:editor/content (atom {})
|
||||
:editor/block (atom nil)
|
||||
:editor/block-dom-id (atom nil)
|
||||
:editor/set-timestamp-block (atom nil) ;; click rendered block timestamp-cp to set timestamp
|
||||
:editor/last-input-time (atom {})
|
||||
:editor/document-mode? document-mode?
|
||||
@@ -1463,14 +1462,6 @@ Similar to re-frame subscriptions"
|
||||
(util/set-theme-light)
|
||||
(util/set-theme-dark)))))
|
||||
|
||||
(defn set-editing-block-dom-id!
|
||||
[block-dom-id]
|
||||
(set-state! :editor/block-dom-id block-dom-id))
|
||||
|
||||
(defn get-editing-block-dom-id
|
||||
[]
|
||||
@(:editor/block-dom-id @state))
|
||||
|
||||
(defn set-root-component!
|
||||
[component]
|
||||
(set-state! :ui/root-component component))
|
||||
@@ -1930,6 +1921,12 @@ Similar to re-frame subscriptions"
|
||||
[]
|
||||
@(:editor/args @state))
|
||||
|
||||
(defn get-editor-block-container
|
||||
[]
|
||||
(some-> (get-edit-input-id)
|
||||
(gdom/getElement)
|
||||
(util/rec-get-node "ls-block")))
|
||||
|
||||
(defn set-page-blocks-cp!
|
||||
[value]
|
||||
(set-state! [:view/components :page-blocks] value))
|
||||
|
||||
Reference in New Issue
Block a user