Focus chat list on launch in screen reader mode

Initial focus went to the unnamed Dialogs::Widget container, so NVDA
announced the raw Qt class chain. Focus the accessible chat list instead
so the list and its selected chat are announced.
This commit is contained in:
Reza Bakhshi Laktasaraei
2026-07-05 09:22:19 +03:30
committed by John Preston
parent 04bfbfadc0
commit ff355eb688
@@ -2216,6 +2216,10 @@ void Widget::setInnerFocus(bool unfocusSearch) {
|| _searchHasFocus
|| _searchSuggestionsLocked)) {
_search->setFocus();
} else if (Ui::ScreenReaderModeActive()) {
// Focus the chat list itself, so the screen reader announces the list
// and its selected chat, instead of the unnamed dialogs container.
_inner->setFocus();
} else {
setFocus();
}