3set: delete by letter pieces when assemblying

This commit is contained in:
minjaesong
2021-10-23 16:46:58 +09:00
parent 129061d743
commit 38462e4506
4 changed files with 68 additions and 7 deletions

View File

@@ -176,8 +176,7 @@ class UIItemTextLineInput(
}
else if (keycodes.contains(Input.Keys.BACKSPACE)) {
if (ime != null && ime.composing()) {
// TODO ime.backspace() instead of resetIME()
resetIME()
composingView = CodepointSequence(ime.backspace().toCodePoints())
}
else if (cursorX <= 0) {
cursorX = 0
@@ -185,6 +184,7 @@ class UIItemTextLineInput(
cursorDrawScroll = 0
}
else {
endComposing()
if (cursorX > 0) {
while (true) {
cursorX -= 1