mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user