https://bugs.kde.org/show_bug.cgi?id=519690

David Edmundson <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/kwin/-/commit/885ed3e1bb |ma/kwin/-/commit/78769490b6
                   |aba6bc12ea6e2b54126bd7c4bfd |d2d831f4cbac385380fe659f677
                   |bda                         |a76

--- Comment #4 from David Edmundson <[email protected]> ---
Git commit 78769490b6d2d831f4cbac385380fe659f677a76 by David Edmundson.
Committed on 02/06/2026 at 11:02.
Pushed by davidedmundson into branch 'Plasma/6.7'.

fakeinput: Keep modifiers when handling keysyms

The requirements for turning keysyms into keycodes are complicated.

If the keysym is "F" vs "f" we need to handle pressing and unpressing
shift before delivering the keycode. However, we still need existing
modifiers like control, alt, meta to work based on key combinations.
This patch avoids unsetting existingly held modifiers and takes a union.
It does mean that sending some keySyms with modifiers explicitly held
down may not translate correctly, but it's hopefully a happy medium.

We also have to ensure when the user explicitly presses a modifier we
don't unset the changes the user made.


(cherry picked from commit 885ed3e1bbaba6bc12ea6e2b54126bd7c4bfdbda)

Co-authored-by: David Edmundson <[email protected]>

M  +22   -0    autotests/integration/fakeinput_test.cpp
M  +25   -3    src/backends/fakeinput/fakeinputbackend.cpp

https://invent.kde.org/plasma/kwin/-/commit/78769490b6d2d831f4cbac385380fe659f677a76

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to