Skip to content
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] (on Mac) The cursor's behavior doesn't match expectations when the "enter" or "delete" (backspace) key is pressed in a Mandarin input context #396

Open
1 task done
effie77777 opened this issue Nov 15, 2024 · 2 comments

Comments

@effie77777
Copy link

effie77777 commented Nov 15, 2024

Has this bug been raised before?

  • I have checked "open" AND "closed" issues and this is not a duplicate

Description

[edit]: I found it works fine on Windows, but the issues appear on Mac.

Hi, I'm a Mandarin user. I encountered some problems when typing in Mandarin. I'm aware that it may be hard to fix the issues or even just understanding what others are talking about when someone is unfamiliar with that language. So, I'd like to briefly explain how a Mandarin word is formed first.

Please refer to the video attached. In Mandarin, a meaningful character/word is composed with multiple segments (kind of like letters in English). For example, the character/word "羅" is composed with four segments, including "ㄌ", "ㄨ", "ㄛ", and the tone indicator, as shown in the video. When I'm still working with the segments and haven't completed the "composition" process yet, the underscores will appear and stay.

Now, suppose the character/word "羅" has already appeared. At this point, the underscore still exists. If I press "enter" key, the underscore disappears, and the cursor jumps to the next line automatically. (Ideally, the cursor should stay on the current line.)
Similarly, if I press "delete" key, all of the segments disappear, and the cursor jumps to the previous line automatically. (Ideally, only the last segment should be deleted, and the cursor should stay on the current line.)

I think these issues have something to do with the way the editor handles inputs in Mandarin. That is, when one is typing in Mandarin, a series of events are triggered, with the "compositionstart" event being the first, followed by the "compositionupdate" event and the "compositionend" event, and finally "input" event. This is different from how English inputs are handled.

---------------
That's all. Thanks very much for your time. Any suggestions or directions of fixing these issues would be much appreciated!

Screenshots

2024-11-15.12.02.45.mov

Do you want to work on this issue?

Yes

@effie77777 effie77777 changed the title [BUG] The cursor's behavior doesn't match expectations when the "enter" or "delete" (backspace) key is pressed in a Mandarin input context [BUG] (on Mac) The cursor's behavior doesn't match expectations when the "enter" or "delete" (backspace) key is pressed in a Mandarin input context Nov 16, 2024
@effie77777
Copy link
Author

Hi,
I found that these issues seem to appear only on Mac but not on Windows. I added this point in the title and the description section.

Thanks again!

@Darginec05
Copy link
Collaborator

@effie77777 can't wait for your contribution, thanks!
if you have any questions ping me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants