-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Autocomplete: Check key events more strictly in IME composition #45626
Conversation
Open in CodeSandbox Web Editor | VS Code | VS Code Insiders |
Size Change: +20 B (0%) Total Size: 1.29 MB
ℹ️ View Unchanged
|
As discussed below this comment, this PR should not be backported to WP6.1.1 as it needs to be thoroughly tested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retested on Mac Chrome/Firefox/Safari, and it works as expected 👍
If you could just add a brief changelog before merging, that would be great.
Follow-up on #45496
I would like to see this PR backported to a minor release in addition to #45496.
Sorry for the additional correspondence.
What?
This PR adds logic in the Autocomplete component to strictly check whether an IME composition session is in progress.
Why?
An IME composition issue was also discovered in the FormTokenField component and will be fixed in #45607. However, as this comment suggests, there are some cases that cannot be controlled depending on the combination of OS and browser.
How?
Added event.isComposing to determine if an IME composition session is in progress.
Testing Instructions
This PR requires Japanese input, but can be tested by following the steps below:
/見出し
which is the Japanese translation of the heading block.enter
key.enter
key again.