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

KeyboardEvent API: repeat - Not working in chrome #23432

Open
Faless opened this issue Jun 18, 2024 · 0 comments · May be fixed by #23446
Open

KeyboardEvent API: repeat - Not working in chrome #23432

Faless opened this issue Jun 18, 2024 · 0 comments · May be fixed by #23446
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Comments

@Faless
Copy link

Faless commented Jun 18, 2024

What type of issue is this?

Browser bug (a bug with a feature that may impact site compatibility)

What information was incorrect, unhelpful, or incomplete?

https://caniuse.com/mdn-api_keyboardevent_repeat reports KeyboardEvent API repeat to be supported in Chrome.

According to this issue in the bug tracker: https://issues.chromium.org/issues/40940886 this is not true.

Specific key pressed results in the incorrect value being set (making the API unusable). According to their own regression tests, this has always been the case, so it's not considered a regression, and is now assigned a P3 (so not planned to be fixed in the years to come).

What browsers does this problem apply to, if applicable?

Chromium (Chrome, Edge 79+, Opera, Samsung Internet)

What did you expect to see?

The browser should report the correct "repeat" value, it instead consistently report an incorrect one.

Did you test this? If so, how?

See https://issues.chromium.org/issues/40940886, there's a JSFiddle here: https://jsfiddle.net/ys6o5tfg/5/

  1. Press and hold: ArrowLeft, ArrowUp, ArrowRight (in this order)
  2. Release ArrowLeft (while keeping ArrowUp and ArrowRight pressed)
  3. See that KEYDOWN ArrowRight is printed in the div (i.e. a keydown event with repeat = false is emitted for ArrowRight)

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

See the upstream bug: See https://issues.chromium.org/issues/40940886

Do you have anything more you want to share?

No response

MDN URL

No response

MDN metadata

No response

@queengooborg queengooborg added the data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants