Fix non hangul characters being inserted at wrong position

This commit is contained in:
Lee0701 2021-05-15 06:21:24 +09:00
parent 1a7cec304b
commit e3ad499161

View file

@ -43,7 +43,9 @@ class HangulCombiner : Combiner {
val currentSyllable = syllable ?: HangulSyllable()
val jamo = HangulJamo.of(event.mCodePoint)
if(!event.isCombining || jamo is HangulJamo.NonHangul) {
composingWord.append(currentSyllable.string)
composingWord.append(jamo.string)
history.clear()
} else {
when(jamo) {
is HangulJamo.Consonant -> {