Skip to content

Let one list child report its own accessibility role - #358

Open
rezabakhshilaktasaraei wants to merge 1 commit into
desktop-app:masterfrom
rezabakhshilaktasaraei:child-role-at
Open

Let one list child report its own accessibility role#358
rezabakhshilaktasaraei wants to merge 1 commit into
desktop-app:masterfrom
rezabakhshilaktasaraei:child-role-at

Conversation

@rezabakhshilaktasaraei

@rezabakhshilaktasaraei rezabakhshilaktasaraei commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

A painted list reports one role for all of its virtual children through accessibilityChildRole(), so a row that is not an item - the unread bar dividing the read messages from the unread ones in the message lists - was read as a list item as well.

accessibilityChildRoleAt(index) lets the owner give one child its own role and defaults to the list-wide one, so nothing changes for the existing lists. It is a separate name rather than an overload on purpose: an overloaded virtual makes clang's -Woverloaded-virtual fail every class that overrides only one of the two forms under the -Werror builds.

Used by telegramdesktop/tdesktop#31211 to expose the unread bar as a Separator, verified with NVDA on Windows 10: the bar is announced as "Unread messages, separator" and drops out of the selection item pattern, the messages around it are unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant