Toggle search focus by escape.

This commit is contained in:
John Preston 2024-04-24 16:56:20 +04:00
parent e6d72b4861
commit 72d5a9b3e0

View file

@ -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