Parcourir la source

fix: press ESC while typing Chinese lost the cursor

fixes https://github.com/logseq/db-test/issues/344
Tienson Qin il y a 6 mois
Parent
commit
3e8d0f01da
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/main/frontend/components/editor.cljs

+ 3 - 0
src/main/frontend/components/editor.cljs

@@ -757,6 +757,9 @@
       (and (= type :esc) (editor-handler/editor-commands-popup-exists?))
       nil
 
+      (state/editor-in-composition?)
+      nil
+
       (or (contains?
            #{:commands :page-search :page-search-hashtag :block-search :template-search
              :property-search :property-value-search :datepicker}