Don't jump with focus to chats list.

This commit is contained in:
John Preston 2022-11-07 14:11:50 +04:00
parent fc4682d77e
commit d8a0497a7e
1 changed files with 5 additions and 1 deletions

View File

@ -2086,7 +2086,7 @@ void HistoryWidget::showHistory(
_cornerButtons.clearReplyReturns();
if (_history) {
if (Ui::InFocusChain(_list)) {
if (Ui::InFocusChain(this)) {
// Removing focus from list clears selected and updates top bar.
setFocus();
}
@ -3670,6 +3670,10 @@ void HistoryWidget::saveEditMsg() {
}
void HistoryWidget::hideChildWidgets() {
if (Ui::InFocusChain(this)) {
// Removing focus from list clears selected and updates top bar.
setFocus();
}
if (_tabbedPanel) {
_tabbedPanel->hideFast();
}