Skip to content

Commit

Permalink
Fix non hangul characters being inserted at wrong position
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee0701 authored and zer0def committed Jul 29, 2023
1 parent d24f513 commit b1c5333
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 -> {
Expand Down

0 comments on commit b1c5333

Please sign in to comment.