mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
Toggle search focus by escape.
This commit is contained in:
parent
e6d72b4861
commit
72d5a9b3e0
1 changed files with 2 additions and 0 deletions
|
@ -1788,6 +1788,8 @@ void Widget::escape() {
|
|||
const auto first = list.empty() ? FilterId() : list.front().id();
|
||||
if (controller()->activeChatsFilterCurrent() != first) {
|
||||
controller()->setActiveChatsFilter(first);
|
||||
} else {
|
||||
_search->setFocus();
|
||||
}
|
||||
}
|
||||
} else if (!_searchInChat
|
||||
|
|
Loading…
Add table
Reference in a new issue