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
Unexpectedly fire the handleEnterKeyPress in NewChannelModal with Japanese IME input mode #23967
Comments
Hi @kaakaa What Mattermost server version are you on? Or did you see this on master? |
Ah, sorry. I'm using v8.0.0-rc1. |
Thanks, opened https://mattermost.atlassian.net/browse/MM-53521. |
Hi @kaakaa , thanks for opening this Github issue.
Pressing To determine / validate whether the set channel name is valid, one should switch focus away from the field by using the Hope this clarifies things! |
Thanks @johndavidlugtu .
This design would make most Japanese (and maybe CJK) users confusing, because Japanese users press the Enter key not to confirm the content of a dialog, but to confirm the word they are typing. The problem is due to the peculiarities of Japanese input method, but I do not think many Japanese users will tolerate this behavior. (I am not familiar with other languages, but I think at least Chinese users would feel the same)
Switching focus away from the field is one of the workarounds, but It continues to be a major problem that just pressing Japanese input method - Wikipedia |
@kaakaa I see -- I appreciate you sharing some additional context |
I have same problem. Maybe, some other languages, especially not using the alphabet, have same problem. |
This issue seems to be fixed in v8.1.0. I expect that the fix was introduced by #23839 that address the issue related to I'll close this issue, and thank you for your continuous effort @johndavidlugtu. |
Summary
In NewChannelModal, while typing channel name with Japanese character, unexpectedly fire "Create channel".
2023-07-07.23.19.40.mov
In the above movie, I pressed Enter with intend to determine the input, but creating channel is fired. If I press Enter twice, the behavior in the above movie is correct (the first is to determine, and the second is to create a channel).
Steps to reproduce
Expected behavior
Determined the input, but don't fire "Create channel"
Observed behavior (that appears unintentional)
"Create channel" is done unexpectedly.
Possible fixes
In channel purpose area, avoid firing the handleEnterKeyPress, but does not in channel name are.
https://github.com/mattermost/mattermost/blob/master/webapp/channels/src/components/new_channel_modal/new_channel_modal.tsx#L273
Similar issue is #20838
The text was updated successfully, but these errors were encountered: