mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
feat: add :shortcut/doc-mode-enter-for-new-block? option
This commit is contained in:
@@ -2266,14 +2266,14 @@
|
||||
(cursor/move-cursor-to input (inc selected-start)))))
|
||||
|
||||
(defn keydown-new-block-handler [state e]
|
||||
(if (state/get-new-block-toggle?)
|
||||
(if (state/doc-mode-enter-for-new-line?)
|
||||
(keydown-new-line)
|
||||
(do
|
||||
(.preventDefault e)
|
||||
(keydown-new-block state))))
|
||||
|
||||
(defn keydown-new-line-handler [state e]
|
||||
(if (state/get-new-block-toggle?)
|
||||
(if (state/doc-mode-enter-for-new-line?)
|
||||
(keydown-new-block state)
|
||||
(do
|
||||
(.preventDefault e)
|
||||
|
||||
Reference in New Issue
Block a user