mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
9.15k stars 22.46k forks source link

KeyboardEvent: code does not produce ShiftRight #34606

Closed Kjm379 closed 2 months ago

Kjm379 commented 3 months ago

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code

What specific section or headline is this issue about?

Try it out

What information was incorrect, unhelpful, or incomplete?

We do not get the code value of "ShiftRight" key.

What did you expect to see?

The code value of "ShiftRight" is shown.

Do you have any supporting links, references, or citations?

https://mike3.net/piano The site is in Japanese.

Pressing Shift left moves the register to the left, but pressing Shift right does not change the register.

Do you have anything more you want to share?

No, I do not have.

MDN metadata

Page report details * Folder: `en-us/web/api/keyboardevent/code` * MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code * GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/api/keyboardevent/code/index.md * Last commit: https://github.com/mdn/content/commit/acfe8c9f1f4145f77653a2bc64a9744b001358dc * Document last modified: 2023-07-07T07:19:19.000Z
Josh-Cena commented 3 months ago

cc @mdn/yari-content-ja Do you have any insights about the Japanese keyboard layout?

Kjm379 commented 3 months ago

Thanks for your comments. We get the key value of Shift right in Firefox in Windows 10 and 11. We also get the key values in Chrome and Edge in Windows 10, but we cannot get the value in Windows 11.

Josh-Cena commented 3 months ago

Hmmm. That sounds more like a Windows 11 and/or Chrome bug, if the result is inconsistent between Win10 and Win11.

Kjm379 commented 3 months ago

Thanks for your comments. I reported the trouble with Chrome and Edge, but no improvement.

Josh-Cena commented 2 months ago

I'm closing this because it's a really, really niche browser bug to say the best, since it only happens on a specific OS/browser/locale combination, and not something we should document.