mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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
|
@ -2439,6 +2439,9 @@ void RepliesWidget::listSelectionChanged(SelectedItems &&items) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_topBar->showSelected(state);
|
_topBar->showSelected(state);
|
||||||
|
if (items.empty()) {
|
||||||
|
doSetInnerFocus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void RepliesWidget::listMarkReadTill(not_null<HistoryItem*> item) {
|
void RepliesWidget::listMarkReadTill(not_null<HistoryItem*> item) {
|
||||||
|
|
|
@ -1174,6 +1174,9 @@ void ScheduledWidget::listSelectionChanged(SelectedItems &&items) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_topBar->showSelected(state);
|
_topBar->showSelected(state);
|
||||||
|
if (items.empty()) {
|
||||||
|
doSetInnerFocus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScheduledWidget::listMarkReadTill(not_null<HistoryItem*> item) {
|
void ScheduledWidget::listMarkReadTill(not_null<HistoryItem*> item) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue