fix: don't exit editor until another block's editor is ready

This fixes flickering or hiding of the system keyboard between input
transitions on mobile.
This commit is contained in:
Tienson Qin
2025-05-24 06:16:22 +08:00
parent 8c27558c09
commit 146c04fcce
3 changed files with 58 additions and 38 deletions

View File

@@ -800,6 +800,8 @@
(when (= (util/ekey e) "Escape")
(editor-on-hide state :esc e))))
:auto-focus true
:autocapitalize "off"
:autocorrect "off"
:class heading-class}
(some? parent-block)
(assoc :parentblockid (str (:block/uuid parent-block)))