Open Bug 1784438 Opened 2 years ago Updated 9 days ago

KeyboardEvent.repeat is always false under Wayland

Categories

(Core :: Widget: Gtk, defect)

Firefox 103
defect

Tracking

()

UNCONFIRMED

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:

  1. Press F12 to open dev tools, and switch to console.
  2. Exec document.addEventListener("keydown", (event) => {console.log(event.repeat);});
  3. 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.

I am using GNOME Shell 42.3.1 Wayland session, but I think this should happen on all Wayland compositors.

Step 0: Use a Wayland session, and start Firefox with MOZ_ENABLE_WAYLAND=1.

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.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

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.

Blocks: wayland
You need to log in before you can comment on or make changes to this bug.