enhance(ux): restore the select mode when escaping the code block

pull/11433/head
charlie 2024-07-14 11:48:10 +08:00
parent 5f2568f398
commit 03acf8709f
1 changed files with 2 additions and 2 deletions

View File

@ -843,9 +843,9 @@
(= :input action)
nil
;; exit editing mode
:else
(let [select? (and (= type :esc)
(not (string/includes? value "```")))]
(let [select? (= type :esc)]
(when-let [container (gdom/getElement "app-container")]
(dom/remove-class! container "blocks-selection-mode"))
(p/do!