update keyboard focus when window switcher is closed.

BUG:477885

Signed-off-by: Jie Liu <liujie01@kylinos.cn>
wilder/Plasma/6.2
Jie Liu 2 years ago committed by Yifan Zhu
parent 4d3779f061
commit e427ad73aa
  1. 4
      src/input.cpp

@ -1635,6 +1635,10 @@ public:
workspace()->tabbox()->keyPress(event->modifiersRelevantForTabBox() | event->key());
} else if (static_cast<KeyEvent *>(event)->modifiersRelevantForGlobalShortcuts() == Qt::NoModifier) {
workspace()->tabbox()->modifiersReleased();
// update keyboard facus if the tabbox no longer grabs keys
if (!workspace()->tabbox() || !workspace()->tabbox()->isGrabbed()) {
input()->keyboard()->update();
}
}
return true;
}

Loading…
Cancel
Save