From ff355eb6888ef07022a7a9bee3267bfbd22f9130 Mon Sep 17 00:00:00 2001 From: Reza Bakhshi Laktasaraei Date: Sun, 5 Jul 2026 09:22:19 +0330 Subject: [PATCH] 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. --- Telegram/SourceFiles/dialogs/dialogs_widget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp index 01f239cf0e..f82edd8697 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp @@ -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(); }