AppFlowy-IO / AppFlowy-IO/appflowy-editor

[Bug] Issue with Korean Input: Loss of TextEditingRange When Alternating Consonant and Vowel

Đang mở
#755 2 bình luận 1 reaction 1 người được giao Được giao cho @LucasXu0 Xem trên GitHub
bug p0
Ngôn ngữ chính
Dart
Star
684
Fork
329
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Bug Description

When typing in Korean, alternating between consonants and vowels, the text editor seems to lose `TextEditingRange` after the input of the first two characters. This results in incorrect character formation. Specifically, attempting to write a sequence of the same character "하" four times instead results in "하하ㅎㅏㅎㅏ".

Thank you for looking into this matter. I look forward to a resolution that will enhance the typing experience for Korean language users.

### How to Reproduce

## Steps to Reproduce
1. Open the text editor.
2. Switch the input method to Korean.
3. Try typing "하하하하" by alternating input between consonants and vowels (i.e., type "ㅎ", then "ㅏ" four times in a sequence).
4. Observe that the input is incorrectly registered as "하하ㅎㅏㅎㅏ" instead of "하하하하".

### Expected Behavior

## Expected Behavior
The editor should accurately reflect the Korean input without losing the `TextEditingRange`, allowing for the correct formation of characters. Typing "ㅎ" followed by "ㅏ" four times in succession should result in "하하하하".

## Actual Behavior
After typing the first two characters correctly as "하하", the editor loses track of the `TextEditingRange`. Subsequent inputs of "ㅎ" and "ㅏ" are not combined into "하", but are instead added separately, resulting in "하하ㅎㅏㅎㅏ".

### Operating System

Android

### AppFlowy Editor Version(s)

2.3.3

### Screenshots

https://github.com/AppFlowy-IO/appflowy-editor/assets/87962825/f6b0023f-be99-4ca5-98c0-3ac1d603fb40

![image](https://github.com/AppFlowy-IO/appflowy-editor/assets/87962825/ffc7db30-327b-4d45-bb6f-8dc47757408f)

### Additional Context

## Additional Information
- This issue seems to be specific to the handling of Korean input, particularly when alternating between consonants and vowels.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.