input: use modifiersRelevantForGlobalShortcuts for tabbox events

This way, caps lock doesn't get in the way

BUG: 453918
This commit is contained in:
Xaver Hugl 2023-08-02 15:21:48 +02:00
parent a4dd18c138
commit 2ea707585f

View file

@ -1623,7 +1623,7 @@ public:
passToWaylandServer(event);
if (event->type() == QEvent::KeyPress) {
workspace()->tabbox()->keyPress(event->modifiers() | event->key());
workspace()->tabbox()->keyPress(event->modifiersRelevantForGlobalShortcuts() | event->key());
} else if (static_cast<KeyEvent *>(event)->modifiersRelevantForGlobalShortcuts() == Qt::NoModifier) {
workspace()->tabbox()->modifiersReleased();
}