mirror of https://github.com/logseq/logseq
enhance(ux): restore the select mode when escaping the code block
parent
5f2568f398
commit
03acf8709f
|
@ -843,9 +843,9 @@
|
||||||
(= :input action)
|
(= :input action)
|
||||||
nil
|
nil
|
||||||
|
|
||||||
|
;; exit editing mode
|
||||||
:else
|
:else
|
||||||
(let [select? (and (= type :esc)
|
(let [select? (= type :esc)]
|
||||||
(not (string/includes? value "```")))]
|
|
||||||
(when-let [container (gdom/getElement "app-container")]
|
(when-let [container (gdom/getElement "app-container")]
|
||||||
(dom/remove-class! container "blocks-selection-mode"))
|
(dom/remove-class! container "blocks-selection-mode"))
|
||||||
(p/do!
|
(p/do!
|
||||||
|
|
Loading…
Reference in New Issue