-
Notifications
You must be signed in to change notification settings - Fork 6k
[web] Ignore keydown event for tab during IME composition #37753
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
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.
Thanks @htoor3 for fixing this issue!
cc @dkwingsmt in case we need to do something similar for the hardware keyboard.
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.
LGTM!
…116140) * a41c6ece2 Ignore keydown event for tab during IME composition (flutter/engine#37753) * f326b630d Roll Skia from 6f65f0631e5a to 4a4cfedd1c20 (6 revisions) (flutter/engine#37942)
…lutter#116140) * a41c6ece2 Ignore keydown event for tab during IME composition (flutter/engine#37753) * f326b630d Roll Skia from 6f65f0631e5a to 4a4cfedd1c20 (6 revisions) (flutter/engine#37942)
…lutter#116140) * a41c6ece2 Ignore keydown event for tab during IME composition (flutter/engine#37753) * f326b630d Roll Skia from 6f65f0631e5a to 4a4cfedd1c20 (6 revisions) (flutter/engine#37942)
…lutter#116140) * a41c6ece2 Ignore keydown event for tab during IME composition (flutter/engine#37753) * f326b630d Roll Skia from 6f65f0631e5a to 4a4cfedd1c20 (6 revisions) (flutter/engine#37942)
During IME composition, Tab gets fired twice: once as part of the composition of the character and once without. This leads to unexpected behavior such as skipping a textfield during tab and input mutation. The solution is to ignore the keydown event that's a part of composition.
Fixes flutter/flutter#74813
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.