Possible wrong KeyNames on mac with Option key combinations #15

Closed
opened 2023-03-20 13:10:04 +01:00 by cyrillbrito · 1 comment
cyrillbrito commented 2023-03-20 13:10:04 +01:00 (Migrated from github.com)

On a mac system when I use the Option key modifier to write some special character the return of the keyName is the value of the underlaying hardware key instead of the actual character that is written.

I do have questions if this is the intended behaviour or not... Let me know if it is indeed a bug or an expected result.

I am using:

  • OS: macOS Ventura
  • Keyboard layout: US (Also tried others and same thing append)
  • Browser: Brave 1.49.120 / Chromium: 111.0.5563.64 (Also tried on Firefox and same thing append)
  • Version: 2.2.6

Video:

https://user-images.githubusercontent.com/19173915/226334905-01cfb9ab-6b4e-4819-bdba-0533fb79bbf4.mov


Code sandbox

On a mac system when I use the Option key modifier to write some special character the return of the `keyName` is the value of the underlaying hardware key instead of the actual character that is written. I do have questions if this is the intended behaviour or not... Let me know if it is indeed a bug or an expected result. I am using: - OS: macOS Ventura - Keyboard layout: US (Also tried others and same thing append) - Browser: Brave 1.49.120 / Chromium: 111.0.5563.64 (Also tried on Firefox and same thing append) - Version: 2.2.6 **Video:** https://user-images.githubusercontent.com/19173915/226334905-01cfb9ab-6b4e-4819-bdba-0533fb79bbf4.mov --- [Code sandbox](https://codesandbox.io/s/w3c-keyname-f8d4r7?file=/index.html:241-247)
marijnh commented 2023-03-20 13:23:46 +01:00 (Migrated from github.com)

This is an annoying thing that MacOS does, and unfortunately not something that a library like this (which doesn't know anything about the keyboard layout) can hide.

This is an annoying thing that MacOS does, and unfortunately not something that a library like this (which doesn't know anything about the keyboard layout) can hide.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
marijn/w3c-keyname#15
No description provided.