mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Improve focusing of shown layers.
This commit is contained in:
@@ -457,7 +457,11 @@ void SectionWidget::showFinished() {
|
||||
showChildren();
|
||||
showFinishedHook();
|
||||
|
||||
controller()->widget()->setInnerFocus();
|
||||
if (isAncestorOf(window()->focusWidget())) {
|
||||
setInnerFocus();
|
||||
} else {
|
||||
controller()->widget()->setInnerFocus();
|
||||
}
|
||||
}
|
||||
|
||||
rpl::producer<int> SectionWidget::desiredHeight() const {
|
||||
|
Reference in New Issue
Block a user