mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +00:00
Toggle search focus by escape.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user