Force focus on parent widget on story show.

This commit is contained in:
John Preston 2023-06-16 16:11:27 +04:00
parent e41fc69513
commit fc0902adf0
1 changed files with 1 additions and 0 deletions

View File

@ -3063,6 +3063,7 @@ bool OverlayWidget::takeFocusFrom(not_null<QWidget*> window) const {
void OverlayWidget::activate() {
_window->raise();
_window->activateWindow();
setFocus();
QApplication::setActiveWindow(_window);
setFocus();
}