mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
69d21f73ef
commit
374b3c68ac
1 changed files with 4 additions and 0 deletions
|
@ -3668,7 +3668,11 @@ bool Widget::cancelSearch(CancelSearchOptions options) {
|
||||||
_inner->clearFilter();
|
_inner->clearFilter();
|
||||||
applySearchState(std::move(updatedState));
|
applySearchState(std::move(updatedState));
|
||||||
if (_suggestions && clearSearchFocus) {
|
if (_suggestions && clearSearchFocus) {
|
||||||
|
const auto clearLockedFocus = !_searchHasFocus;
|
||||||
setInnerFocus(true);
|
setInnerFocus(true);
|
||||||
|
if (clearLockedFocus) {
|
||||||
|
processSearchFocusChange();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
updateForceDisplayWide();
|
updateForceDisplayWide();
|
||||||
return clearingQuery || clearingInChat || clearSearchFocus;
|
return clearingQuery || clearingInChat || clearSearchFocus;
|
||||||
|
|
Loading…
Add table
Reference in a new issue