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

Inconsistent behavior for keypress event for surrogate pairs #1741

Open
jrandolf-2 opened this issue May 24, 2023 · 1 comment
Open

Inconsistent behavior for keypress event for surrogate pairs #1741

jrandolf-2 opened this issue May 24, 2023 · 1 comment

Comments

@jrandolf-2
Copy link
Contributor

In all three browsers, we have inconsistent behavior w.r.t. keypress events with unicode characters that are surrogate pairs.

Specifically, the following behavior is observed:

  • Chrome - No event is emitter.
  • Firefox - Two keypress events are emitted, one for each surrogate pair.
  • Safari - One keypress event is emitted, for the full U32 unit.

The user expectation is probably aligned with Safari's rather than Firefox's, so I propose we align with Safari on this matter.

CC: @whimboo

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

3 participants
@mathiasbynens @jrandolf-2 and others