Improve focusing of shown layers.

This commit is contained in:
John Preston 2024-07-31 13:44:07 +02:00
parent 76314e3c03
commit cf896aeb13

View file

@ -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 {