mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-12 14:51:51 +09:00
all currently existing korean imes are rewrote to rewrite
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user