all currently existing korean imes are rewrote to rewrite

This commit is contained in:
minjaesong
2021-11-13 16:33:14 +09:00
parent 432c90776b
commit 3c2d261f27
5 changed files with 544 additions and 48 deletions

View File

@@ -183,7 +183,7 @@ class UIItemTextLineInput(
while (cursorX > 0) {
cursorX -= 1
val charDeleted = textbuf.removeAt(cursorX)
printdbg(this, "$dbgprn)charDeleted=${charDeleted.toCharInfo()}")
// printdbg(this, "$dbgprn)charDeleted=${charDeleted.toCharInfo()}")
if (charDeleted !in 0x1160..0x11FF) break
}
@@ -384,7 +384,10 @@ class UIItemTextLineInput(
private fun endComposing() {
getIME()?.let {
val s = it.endCompose()
if (it.config.mode != TerrarumIMEMode.REWRITE) {
if (s.isNotEmpty()) {
if (it.config.mode == TerrarumIMEMode.REWRITE) {
inputBackspaceOnce(9)
}
paste(s.toCodePoints())
}
}