mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 07:56:03 +00:00
Allow clearing search results.
This commit is contained in:
@@ -1453,13 +1453,19 @@ void Widget::setInnerFocus() {
|
||||
} else if ((_openedFolder || _openedForum)
|
||||
&& _subsectionTopBar->searchSetFocus()) {
|
||||
return;
|
||||
} else if (!_search->getLastText().isEmpty() || _searchInChat) {
|
||||
} else if (!_search->getLastText().isEmpty()
|
||||
|| _searchInChat
|
||||
|| _searchHasFocus) {
|
||||
_search->setFocus();
|
||||
} else {
|
||||
setFocus();
|
||||
}
|
||||
}
|
||||
|
||||
bool Widget::searchHasFocus() const {
|
||||
return _searchHasFocus;
|
||||
}
|
||||
|
||||
void Widget::jumpToTop(bool belowPinned) {
|
||||
if (session().supportMode()) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user