mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-02 10:18:30 +00:00
Try cancelling the new search by mouse back button.
This commit is contained in:
@@ -1107,6 +1107,13 @@ void Widget::updateHasFocus(not_null<QWidget*> focused) {
|
||||
}
|
||||
}
|
||||
|
||||
bool Widget::cancelSearchByMouseBack() {
|
||||
return _searchHasFocus
|
||||
&& !_searchSuggestionsLocked
|
||||
&& !_searchInChat
|
||||
&& cancelSearch();
|
||||
}
|
||||
|
||||
void Widget::processSearchFocusChange() {
|
||||
_searchSuggestionsLocked = _suggestions && _suggestions->persist();
|
||||
updateCancelSearch();
|
||||
|
||||
Reference in New Issue
Block a user