wayland: Fix sendFullKeyEvent to properly handle AltGr and NumLock modifiers
QWaylandSeat::sendFullKeyEvent and
QWaylandKeyboard::checkAndRepairModifierState did not properly handle
AltGr (Mod5/ISO_Level3_Shift) and NumLock modifiers:
- AltGr was not tracked by mod5Index, so Qt::GroupSwitchModifier events
were not translated to the xkb Mod5 bit when repairing modifier state
- The Qt::Key_AltGr key was not guarded against in the modifier repair
logic, allowing the repair to fire while AltGr itself was pressed
- NumLock state (modsLocked) was discarded during modifier state repair
by passing 0 instead of the current modsLocked value to
send_modifiers()
Fixes: QTBUG-131910
Change-Id: I58545a7d39f69c8dadd611bf851b30c6a894d6d3
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>