fix: Delete key is deleting 2 characters rather than 1

close #3191
This commit is contained in:
Tienson Qin
2021-11-18 12:19:31 +08:00
parent 3888dcb027
commit 63a1050743
3 changed files with 3 additions and 1 deletions

View File

@@ -3126,6 +3126,7 @@
(defn editor-delete
[_state e]
(when (state/editing?)
(util/stop e)
(keydown-delete-handler e)))
(defn editor-backspace