FIX(editor): Fix delete character which has more than one UTF-16 code unit using Delete key. close the issue #9834 (#9837)

such as delete 🤔(U+1F914), 𠀅(U+20005)
This commit is contained in:
gfgafn
2023-07-11 14:10:14 +08:00
committed by GitHub
parent 76a6510837
commit 8a2c6e9537

View File

@@ -2696,7 +2696,8 @@
(delete-concat current-block)))
:else
(delete-and-update input current-pos (inc current-pos))))))
(delete-and-update
input current-pos (util/safe-inc-current-pos-from-start (.-value input) current-pos))))))
(defn keydown-backspace-handler
[cut? e]