** Description changed: [ Impact ] - When a key is auto-repeating and a second key is pressed, releasing the - first key stops the repeat of the second key. This affects GTK4/Wayland - clients that use server-side key repeat (wl_keyboard version 10), such as - GNOME Text Editor and Ptyxis, and makes cursor-key navigation awkward. + With several keys held, releasing a key that is not the one currently + auto-repeating cancels the repeat. Typical case: hold Down until it + repeats, press and hold Right, release Down: Right never repeats. This + is a regression from 24.04 and makes keyboard navigation awkward. - The fix only cancels the repeat when the released key is the one driving - it, and leaves an ongoing repeat alone when a non-repeating key is - pressed. + Only input that uses mutter's server-side key repeat is affected: + Wayland clients binding wl_keyboard version 10 (GTK4 apps such as GNOME + Text Editor and Ptyxis) and GNOME Shell's own text entries. Clients + using an older wl_keyboard version (e.g. GTK3) repeat keys themselves. + + The fix (upstream 63ab173a, in mutter 50.5) changes two things in + meta_seat_impl_notify_key_in_impl(): + * a key release only cancels the repeat if it is the repeating key; + * pressing a non-repeating key (e.g. a modifier) no longer cancels an + ongoing repeat. This is a visible behaviour change: holding "a" and + then pressing Shift now continues as "AAA", and holding Down then + pressing Ctrl repeats Ctrl+Down. Previously the repeat stopped. The + new behaviour matches X11 and mutter 50.5+. [ Test Plan ] - 1. Open a GTK4 text editor or terminal with a large file. - 2. Hold Down until it auto-repeats, then press and hold Right without - releasing Down; release Down. Right should keep repeating. - 3. Repeat with three keys held and with modifier keys. - 4. Regression check: normal single-key repeat starts and stops correctly, - and releasing the repeating key stops it immediately. + In a GNOME Wayland session, open GNOME Text Editor with a long file: + + 1. Hold Down until it repeats, then press and hold Right and release + Down. Expected: Right keeps repeating (broken: it stops). + 2. Hold Down, press Right, release Right. Expected: Down keeps + repeating, uninterrupted. + 3. Hold "a" until it repeats, then press Shift. Expected: the repeat + continues as "A"; releasing Shift continues as "a"; releasing "a" + stops it immediately. + 4. Repeat 1 and 3 in Ptyxis and in the Activities overview search + entry. + + Regression checks: + 5. Single key: repeat starts after the configured delay and stops + immediately on release; no stuck repeat after fast typing. + 6. Shortcuts: holding Ctrl/Super/Alt and tapping a key behaves as + before (no repeat of the modifier, shortcut fires once). + 7. With repeat disabled + (gsettings set org.gnome.desktop.peripherals.keyboard repeat false), + no key repeats. + 8. A GTK3 app (e.g. gedit) repeats exactly as before. [ Where problems could occur ] - The change is in the native seat key handling. A regression could show up - as a key that never repeats, a repeat that continues after release, or - modifier handling disturbing repeat. Test normal typing, modifier - combinations, and multiple simultaneous keys. + The change is limited to the repeat logic in the native backend's + input thread (src/backends/native/meta-seat-impl.c). Possible + regressions: + * a repeat that is not cancelled, i.e. a "stuck" repeating key, if + the key release is not matched to the repeating key; + * a key that does not start repeating; + * applications or users relying on a modifier press stopping the + repeat, which no longer happens (see Impact). Repeated + modifier+key combinations (e.g. Ctrl+Down) may now reach apps. + + [ Other Info ] + + Upstream issue: https://gitlab.gnome.org/GNOME/mutter/-/issues/4675 + Upstream MR: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4974 + gnome-50: 63ab173a224b5bd7dd249a5534a39ccbe2c62d90 (mutter 50.5) + main: 3fe9b5fb2b3f14698e1880336ea57af023ec09cf + Patch: debian/patches/ubuntu/backends-Prevent-modifier-release-from-stopping-key-repeat.patch [ Original description ] I was pointed here from https://discourse.ubuntu.com/t/resolute- regression-in-keyboard-autorepeat-behaviour/81055 I’ve updated from 24.04 to 26.04 and found a regression regarding keyboard autorepeat behaviour. When autorepeating one key and I switch to second key – without releasing the first key strictly serially first – the autorepeat for the second key won’t kick in. This can be reproduced with any two keys I assume, most prominently the cursor keys. I tried both terminal (Ptyxis) and a GTK app (Gnome Text Editor). I tried three keyboards connected to the same machine (internal notebook keyboard and two external USB – one of them I crosstested against Bazzite Linux/Gnome 49/Mutter 49 which worked as expecteed). Test case: * Open any decently sized text file (e.g. log file) in either nano or Gnome Text Editor (or I assume any other editor). The cursor should by placed at the beginning of the file. * Press and hold key down until the key autorepeats. Cursor will move down continuously. * Without releasing down, press and hold right, then release down. The cursor will move one char right but autorepeat won’t kick in. The issue wasn’t present in 24.04. One could argue you’re supposed to press keys strictly serially. But I’m afraid that’s not reality for most (somewhat advanced) keyboard users. Apparently there was a similar issue in Wayland 9 years ago, but it was fixed: https://bugzilla.gnome.org/show_bug.cgi?id=781285 ProblemType: Bug DistroRelease: Ubuntu 26.04 Package: mutter (not installed) ProcVersionSignature: Ubuntu 7.0.0-14.14-generic 7.0.0 Uname: Linux 7.0.0-14-generic x86_64 ApportVersion: 2.34.0-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Sun Apr 26 15:45:35 2026 SourcePackage: mutter UpgradeStatus: Upgraded to resolute on 2026-04-24 (2 days ago)
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2150377 Title: Resolute: Regression in keyboard autorepeat behaviour To manage notifications about this bug go to: https://bugs.launchpad.net/mutter/+bug/2150377/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
