KeyboardEvent.repeat is always false under Wayland
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: alynx.zhou, Unassigned)
References
(Blocks 1 open bug)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0
Steps to reproduce:
- Press F12 to open dev tools, and switch to console.
- Exec
document.addEventListener("keydown", (event) => {console.log(event.repeat);});
- Press and hold a random key while focusing the website, and check the output.
Actual results:
It always prints false
.
Expected results:
The first one should be false
, and following should all be true
.
Reporter | ||
Comment 1•2 years ago
|
||
I am using GNOME Shell 42.3.1 Wayland session, but I think this should happen on all Wayland compositors.
Reporter | ||
Comment 2•2 years ago
|
||
Step 0: Use a Wayland session, and start Firefox with MOZ_ENABLE_WAYLAND=1
.
Comment 3•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Same here on the wlroots-based Wayfire compositor. Also, holding down Alt or Control keys do not continuously generate events. Google Chrome will fire these repeat
events.
Checked with https://w3c.github.io/uievents/tools/key-event-viewer.html.
Description
•