mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Return focus to input field on ListWidget selection clear.
This commit is contained in:
parent
9c7fee0bfe
commit
2dea8941a5
2 changed files with 6 additions and 0 deletions
Telegram/SourceFiles/history/view
|
@ -2439,6 +2439,9 @@ void RepliesWidget::listSelectionChanged(SelectedItems &&items) {
|
|||
}
|
||||
}
|
||||
_topBar->showSelected(state);
|
||||
if (items.empty()) {
|
||||
doSetInnerFocus();
|
||||
}
|
||||
}
|
||||
|
||||
void RepliesWidget::listMarkReadTill(not_null<HistoryItem*> item) {
|
||||
|
|
|
@ -1174,6 +1174,9 @@ void ScheduledWidget::listSelectionChanged(SelectedItems &&items) {
|
|||
}
|
||||
}
|
||||
_topBar->showSelected(state);
|
||||
if (items.empty()) {
|
||||
doSetInnerFocus();
|
||||
}
|
||||
}
|
||||
|
||||
void ScheduledWidget::listMarkReadTill(not_null<HistoryItem*> item) {
|
||||
|
|
Loading…
Add table
Reference in a new issue