mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 17:36:33 +00:00
Close action menu when pressing escape
This commit is contained in:
committed by
Tienson Qin
parent
d39ae199fb
commit
bc00dba369
@@ -2874,7 +2874,7 @@
|
||||
(when (and (not editor-action) (not non-enter-processed?))
|
||||
(cond
|
||||
;; When you type text inside square brackets
|
||||
(and (not (contains? #{"ArrowDown" "ArrowLeft" "ArrowRight" "ArrowUp"} k))
|
||||
(and (not (contains? #{"ArrowDown" "ArrowLeft" "ArrowRight" "ArrowUp" "Escape"} k))
|
||||
(wrapped-by? input page-ref/left-brackets page-ref/right-brackets))
|
||||
(let [orig-pos (cursor/get-caret-pos input)
|
||||
value (gobj/get input "value")
|
||||
|
||||
Reference in New Issue
Block a user