Support multiple details roles#14426
Closed
feerrenrut wants to merge 17 commits into
Closed
Conversation
Fixes #13815 This can be squashed into commit: "Convert detailsRole to detailsRoles" when rebasing on master.
Use "unknown" for a virtualBuffer node that is missing a role. This should be reported as "has details" / "details" in speech / braille respectively.
Shows in log as follows: DEBUGWARNING - Python warning (16:47:09.529) - MainThread (1772): source\globalCommands.py:2307: DeprecationWarning: NVDAObject.detailsSummary is deprecated. Use NVDAObject.annotations instead. if objAtStart.detailsSummary:
Braille output has changed
details is now output as has details Braille device only has 120 chars, so output is cut off. Update cell count in 'def _onNvdaStartupComplete' see 'self.setBrailleCellCount(120)'
36cd788 to
8567b1f
Compare
3fe1efd to
ba0da60
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
7 tasks
8 tasks
Member
|
Closing this in favour of #14507 |
seanbudd
added a commit
that referenced
this pull request
Jan 5, 2023
Supersedes #14389 and #14426. Fixes #14360 Summary of the issue: Before this PR, NVDA was only aware of the first annotation target. NVDA announces the presence of an annotation target. nvda+d is used to announce the summary of the first annotation target. This PR introduces base code to support multiple annotation targets, and enables cycling though reporting each summary. Similarly, #14507 introduces reporting the presence of multiple annotation targets. Description of user facing changes nvda+d now cycles through reporting each annotation target for an annotated item. For example reading the summary of each child comment. Description of development approach Creates abstractions for the relationships between annotation origins and targets. The global command to report a summary of an annotation target has been updated.
seanbudd
added a commit
that referenced
this pull request
Jan 5, 2023
Stacked against #14480 Supersedes #14426 Summary of the issue: Currently, NVDA only announces the first annotation target, and only announces the first annotation summary. #14480 introduces the ability to cycle through multiple annotations targets. This PR introduces announcing the presence of multiple annotation targets. When multiple annotation targets are present with different roles, NVDA should announce them. Example: A footnote, a comment, and a no-role annotation are present NVDA should announce "has footnote, has comment, has details" to make it easier for the user to find the annotation they want to interact with. Description of user facing changes When the annotation feature is enabled, NVDA will now report all the unique annotation target roles. Description of development approach From the virtual buffer, exposed comma separated values for the roles of annotation targets via the "detailsRoles" property. Converted all aria-details functions to plural form (handling a collection rather than a single optional value). Removed usages of, and deprecated nvdaObject.hasDetails, nvdaObject.detailsSummary, nvdaObject.detailsRole These are replaced with new Annotations types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to issue number:
None
Summary of the issue:
When multiple annotation targets are present with different roles, NVDA should announce them.
Example:
Description of user facing changes
When the annotation feature is enabled, NVDA will now report all the unique annotation target roles.
Description of development approach
nvdaObject.hasDetails,nvdaObject.detailsSummary,nvdaObject.detailsRoleTesting strategy:
Manual testing with: https://codepen.io/reefturner/pen/poKLQyj
Known issues with pull request:
None
Change log entries:
New features
For Developers
Code Review Checklist: