-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Korean Input Bug (include debugging information) #1028
Comments
Hi @Jongsik , thanks for your issue, if it's convenient for you, could you please provide the detailed information for the following part? For example, the actual data of various TextEditingDelta instances?
|
@asjqkkkk Thank you for your reply. If i type the word "스트", the order of typing is,
The detail logs
flutter: [DEBUG][input]: 2025-01-26 11:59:02.796186: onReplace: TextEditingDeltaReplacement#30dcf(oldText: 스, textReplaced: 스, replacementText: 슽, replacedRange: TextRange(start: 0, end: 1), selection: TextSelection.collapsed(offset: 0, affinity: TextAffinity.downstream, isDirectional: false), composing: TextRange(start: 0, end: 1)) 2 .windows 11 IME (OK)Flutter: [DEBUG][input]: 2025-01-26 11:57:46.825279: onReplace: TextEditingDeltaReplacement#1b5c4(oldText: 스, textReplaced: 스, replacementText: 슽, replacedRange: TextRange(start: 0, end: 1), selection: TextSelection.collapsed(offset: 0, affinity: TextAffinity.downstream, isDirectional: false), composing: TextRange(start: 0, end: 1)) Thanks a lot and if you need more, Please comment me ! |
@Jongsik thank you, the information you provided is enough, the next step we need to do is to debug and fix it |
Bug Description
Hi. I think many korean people has problem with windows 10 korean IME
The details of bug can find here : AppFlowy-IO/AppFlowy#5357 (comment)
it could be reproduced by typing "xptmxm" in QWERTY keyborad
How to Reproduce
Expected Behavior
It is okay with Windows 11 IME
Operating System
windwos 10 and windows 11(with previous version IME)
AppFlowy Editor Version(s)
4.0.0
Screenshots
No response
Additional Context
Somthing informations during debugging.
--> WM_IME_STARTCOMPOSITION
--> WM_IME_COMPOSITION – (lParam & GCS_COMPSTR)
--> WM_IME_COMPOSITION – (lParam & GCS_RESULTSTR)
--> WM_IME_ENDCOMPOSITION
--> WM_IME_STARTCOMPOSITION
--> WM_IME_COMPOSITION – (lParam & GCS_COMPSTR)
--> WM_IME_ENDCOMPOSITION
--> WM_IME_COMPOSITION – (lParam & GCS_RESULTSTR)
-->TextEditingDeltaReplacement
-->TextEditingDeltaInsertion
--> apply op (local): {op: update, ~~
-->TextEditingDeltaReplacement
-->TextEditingDeltaNonTextUpdate
-->TextEditingDeltaNonTextUpdate
-->TextEditingDeltaInsertion
--> apply op (local): {op: update, ~~
final transaction = editorState.transaction
..insertText(
node,
selection.startIndex,
textInserted,
toggledAttributes: editorState.toggledStyle,
sliceAttributes: editorState.sliceUpcomingAttributes,
)
final insert = Delta()
..retain(index) <<-- windows 10 IME Skip this when problem is occured
..insert(text, attributes: newAttributes);
I found thease phenomenons, but i couldn't find the way to fix this.
Please Check this bug. Thanks.
The text was updated successfully, but these errors were encountered: