Improve second-time choose of toppeers.

This commit is contained in:
John Preston 2024-04-22 12:21:08 +04:00
parent 05474f4a3f
commit 768e8b457b
1 changed files with 4 additions and 0 deletions

View File

@ -1173,6 +1173,10 @@ void Widget::updateSuggestions(anim::type animated) {
.key = peer->owner().history(peer),
.newWindow = base::IsCtrlPressed(),
});
if (!_searchSuggestionsLocked && _searchHasFocus) {
setFocus();
controller()->widget()->setInnerFocus();
}
}, _suggestions->lifetime());
updateControlsGeometry();