mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 10:56:32 +00:00
Enhance: don't move to the previous block when there's highlighted area and pressing left
This commit is contained in:
@@ -2369,8 +2369,9 @@
|
||||
|
||||
(defn- on-arrow-move-to-boundray
|
||||
[state input e direction]
|
||||
(when (or (and (= :left direction) (util/input-start? input))
|
||||
(and (= :right direction) (util/input-end? input)))
|
||||
(when (and (not (util/input-selected? input))
|
||||
(or (and (= :left direction) (util/input-start? input))
|
||||
(and (= :right direction) (util/input-end? input))))
|
||||
(move-to-block-when-cross-boundrary state e direction)))
|
||||
|
||||
(defn keydown-arrow-handler
|
||||
|
||||
Reference in New Issue
Block a user