Skip to content

[cherry-pick] clutter: Do not latch modifiers on modifier keys

Marco Trevisan requested to merge cherry-pick-67aab7c1 into gnome-3-28

If the user maps eg. Alt+F2 to a pad button, the MetaInputSettings will send the full Alt press, F2 press, F2 release, Alt release sequence. However the keycode corresponding to Alt is found in level 1, so the Shift modifier gets unintendedly latched in addition to the Alt key press/release pair.

We could probably improve keycode lookup heuristics so level=0 (and no modifier latching) is preferred, but we can do without it altogether for modifier keys.

(cherry picked from commit 67aab7c1)

Merge request reports