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