mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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();
|
const auto first = list.empty() ? FilterId() : list.front().id();
|
||||||
if (controller()->activeChatsFilterCurrent() != first) {
|
if (controller()->activeChatsFilterCurrent() != first) {
|
||||||
controller()->setActiveChatsFilter(first);
|
controller()->setActiveChatsFilter(first);
|
||||||
|
} else {
|
||||||
|
_search->setFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (!_searchInChat
|
} else if (!_searchInChat
|
||||||
|
|
Loading…
Add table
Reference in a new issue