[macOS] RawKeyboardDataMacos properly handles multi-char characters#94432
[macOS] RawKeyboardDataMacos properly handles multi-char characters#94432dkwingsmt merged 3 commits intoflutter:masterfrom
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. 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. |
|
I agree that the two character limit isn't right, but doesn't this disable all multi-char input, like emojis? |
|
This change only affects the logical key's value (and consequently, the And if that's the concern, yes, a multi-char emoji event (if that's a thing) will have a minted logical key. What else can we give for this event? |
|
Got it. Makes sense. |

This PR changes the
logicalKeyvalue of aRawKeyboardEventthat has a multi-charcharacter.Previously its logical key is a unicode key, whose 32-bit value part is the concatenation of the two characters. This is inproper because:
keyLabel.With this PR, its logical key is its key code mapped to the macOS plane.
This fixes the macOS-channel part of #82673.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.