mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
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:
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user