multimedia keys to browser
Affected version
Fedora 34 gnome-shell-40.3-1.fc34.x86_64 mutter-40.3-1.fc34.x86_64
Bug summary
Multimedia and device keyboard events aren't passed on to the browser.
Browsers now support multimedia and device keys, and some of those keys get passed to the DOM in a keyboardevent
When running under Gnome, in Wayland and X11, those keys aren't passed through. Running under KDE the keys are passed through in both Wayland and X11.
Tested with Firefox (90 and nightly), Chrome 92.0.4515, Web 40.1, and Konqueror 21.04.02
Steps to reproduce
- Start Gnome
- Start a browser (your choice)
- Press a multimedia key (play, pause, next)
What happened
Nothing
What did you expect to happen
window.onkeydown() to fire
Relevant logs, screenshots, screencasts etc.
Tried multiple browser to confirm it isn't a browser bug.
Tried Wayland and X11.
Tried window and element.onkeydown(), and tried various keys, including various keyboard layouts.
Under no session (gnome, kde, x11, wayland, etc.) do the device keys pass through (eg. brightness) Under KDE multimedia keys do pass through Under Gnome no multimedia keys pass through
W3C status: https://w3c.github.io/uievents-key/impl-report.html Various keyboard events: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values