wl_keyboard.key definition is too loose
Web browsers need to expose physical keys directly, without the keymap being involved: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code
However, wl_keyboard.key
says:
The key is a platform-specific key code that can be interpreted by feeding it to the keyboard mapping (see the keymap event).
AFAIU, currently Web browsers just assume the key codes are the same as <linux/input-event-codes.h>
.