SUMMARY Kubuntu (including 25.10 beta) does not handle the lock state correctly for sticky keys under Wayland. STEPS TO REPRODUCE 1. Start a Plasma Wayland session, configure Sticky Keys as enabled + lock modifier keys enabled 2. Open a text input (e.g. Konsole; I think it will reproduce in all text inputs, but I usually open Konsole to test with) 3. Press in sequence (one key at a time): SHIFT SHIFT a - b SHIFT x OBSERVED RESULT a-bx EXPECTED RESULT A_Bx SOFTWARE/OS VERSIONS Linux/KDE Plasma: As distributed in Ubuntu 24.10 (IIRC) – 25.10 beta KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION The final "SHIFT X" in the reproduction section shows that the lock state is being handled correctly: this 3rd press of SHIFT unlocks the state, so the next key should appear un-shifted. If there were a different error, the result would be a capital X. The use of the dash distinguishes the sticky-keys behavior from Caps Lock. Please let me know if you need exact software/os versions from apt, or would like me to try a different distro (if it can run from a live USB.) Not a duplicate: bug 464452 appears to be about implementing the state tracking itself. Bug 444335 is potentially related, but marked fixed in 2024, while this problem persists in 2025. Bug 34991 predates Wayland.
I have also reported this downstream: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/2125291 While doing the research on that, I found more info: 1. It's definitely any text input, e.g. Firefox location bar and form fields, Kate, etc. It is not app-specific nor toolkit-specific. 2. The Lock Keys Status applet in the tray reflects the incorrect results: when pressing SHIFT the second time, it disappears from the tray, instead of remaining but changing from "Latched" to "Locked." On an X11 session, the applet (and locked state) function as expected.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/8142
Git commit 5f48d5ba511a29064efd8ca3c55c1d283a2be12e by Xaver Hugl. Committed on 24/09/2025 at 12:36. Pushed by zamundaaa into branch 'master'. autotests/integration: make the sticky keys test more complete And fix modifier state caused by sticky keys not being reported to keystate protocol users. Sticky key locking still doesn't work properly with this, as we lock keys on press, but libkxbcommon afterwards unlocks keys on release. The relevant checks in the test are commented out until that's fixed. M +2 -1 autotests/integration/CMakeLists.txt M +20 -0 autotests/integration/kwin_wayland_test.h M +33 -10 autotests/integration/sticky_keys_test.cpp M +26 -0 autotests/integration/test_helpers.cpp M +16 -2 src/plugins/stickykeys/stickykeys.cpp https://invent.kde.org/plasma/kwin/-/commit/5f48d5ba511a29064efd8ca3c55c1d283a2be12e
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/8150
Git commit 837e0849504836cfb728c6655f8eedf01e45dc89 by Xaver Hugl. Committed on 24/09/2025 at 14:30. Pushed by zamundaaa into branch 'Plasma/6.5'. autotests/integration: make the sticky keys test more complete And fix modifier state caused by sticky keys not being reported to keystate protocol users. Sticky key locking still doesn't work properly with this, as we lock keys on press, but libkxbcommon afterwards unlocks keys on release. The relevant checks in the test are commented out until that's fixed. (cherry picked from commit 5f48d5ba511a29064efd8ca3c55c1d283a2be12e) Co-authored-by: Xaver Hugl <xaver.hugl@kde.org> M +2 -1 autotests/integration/CMakeLists.txt M +20 -0 autotests/integration/kwin_wayland_test.h M +33 -10 autotests/integration/sticky_keys_test.cpp M +26 -0 autotests/integration/test_helpers.cpp M +16 -2 src/plugins/stickykeys/stickykeys.cpp https://invent.kde.org/plasma/kwin/-/commit/837e0849504836cfb728c6655f8eedf01e45dc89
PC Arch Linux KDE, this bug for all the modifier keys: Ctrl, Shift, Alt & Windows keys, not only Shift.
(In reply to Jérémy Bézairie from comment #6) > PC Arch Linux KDE, this bug for all the modifier keys: Ctrl, Shift, Alt & Windows keys, not only Shift. I can confirm this is also true of Ubuntu/Kubuntu as reported. It was simply easiest for me to explain using the Shift key.
Confirming on Arch Linux, Plasma/KWin 6.5.5. Lock sticky keys works on X11 but not Wayland.
Created attachment 197198 [details] output from wev I can reproduce a closely related failure on CachyOS with Plasma 6.8.0 and KWin 6.8.0 under Wayland. In my case, even the normal single-press latch does not work, but only with the shift-key, all the other modifiers do work for the normal single-press latch, for the lock-feature no modifier works: 1. Enable Sticky Keys. 2. Press and release Shift once. 3. Press `a`. Expected: `A` Actual: `a` `wev` shows that the following key event reaches the client without the Shift modifier: ```text sym: a (97), utf8: 'a' ``` The Sticky Keys sound is played when Shift is pressed, so Plasma appears to detect the interaction, but KWin does not apply or forward the latched Shift modifier to the application. This may be the same underlying issue as the lock-state problem described in this report, but it affects the normal one-shot latch as well, not only the locked state. Attachment: full `wev` recording.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/10191
Git commit 290fdb811664ae53e3f49a95ee5218cf4308c6c6 by Vlad Zahorodnii. Committed on 22/10/2026 at 15:01. Pushed by vladz into branch 'master'. plugins/stickykeys: Latch and lock modifiers on key release The modifiers are latched and locked on key press. However, it looks like xkb_state_update_key() can reset the locked state. In other words, Press Shift: - xkb_state_update_key(Shift, pressed) - the sticky filter latches the Shift modifier Release Shift: - xkb_state_update_key(Shift, released) Press Shift: - xkb_state_update_key(Shift, pressed) - the sticky filter locks the Shift modifier Release Shift: - xkb_state_update_key(Shift, released) - xkb also resets the locked state of the Shift modifier This results in double tapping a modifier not making the modifier persistent. For example, "SHIFT SHIFT a b c" produces "Abc" instead of "ABC". In order to address the issue, this change makes the input filter latch and lock modifiers on key release after xkb_state_update_key(). This also matches what mutter appears to do as well. M +28 -29 autotests/integration/sticky_keys_test.cpp M +13 -12 src/plugins/stickykeys/stickykeys.cpp https://invent.kde.org/plasma/kwin/-/commit/290fdb811664ae53e3f49a95ee5218cf4308c6c6
Git commit c4b0a90636171f6b61f3c821dd86c88aaed8ba1c by Vlad Zahorodnii. Committed on 23/10/2026 at 06:48. Pushed by vladz into branch 'Plasma/6.8'. plugins/stickykeys: Latch and lock modifiers on key release The modifiers are latched and locked on key press. However, it looks like xkb_state_update_key() can reset the locked state. In other words, Press Shift: - xkb_state_update_key(Shift, pressed) - the sticky filter latches the Shift modifier Release Shift: - xkb_state_update_key(Shift, released) Press Shift: - xkb_state_update_key(Shift, pressed) - the sticky filter locks the Shift modifier Release Shift: - xkb_state_update_key(Shift, released) - xkb also resets the locked state of the Shift modifier This results in double tapping a modifier not making the modifier persistent. For example, "SHIFT SHIFT a b c" produces "Abc" instead of "ABC". In order to address the issue, this change makes the input filter latch and lock modifiers on key release after xkb_state_update_key(). This also matches what mutter appears to do as well. (cherry picked from commit 290fdb811664ae53e3f49a95ee5218cf4308c6c6) M +28 -29 autotests/integration/sticky_keys_test.cpp M +13 -12 src/plugins/stickykeys/stickykeys.cpp https://invent.kde.org/plasma/kwin/-/commit/c4b0a90636171f6b61f3c821dd86c88aaed8ba1c