Pressing a modifier key twice should lock it. Pressing it again should unlock it. Follow-up from https://bugs.kde.org/show_bug.cgi?id=444335
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/4069
Git commit d4127d07fd55c342d28fa7a6b66b460473c5d00c by Vlad Zahorodnii, on behalf of Nicolas Fella. Committed on 23/11/2023 at 09:17. Pushed by vladz into branch 'master'. Implement locking sticky keys on Wayland When pressing a latched modifier a second time lock it When pressing a locked modifier release it M +1 -0 autotests/integration/CMakeLists.txt A +180 -0 autotests/integration/sticky_keys_test.cpp [License: GPL(v2.0+)] M +38 -6 src/plugins/stickykeys/stickykeys.cpp M +2 -0 src/plugins/stickykeys/stickykeys.h M +48 -0 src/xkb.cpp M +1 -0 src/xkb.h https://invent.kde.org/plasma/kwin/-/commit/d4127d07fd55c342d28fa7a6b66b460473c5d00c