Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix text paragraph navigation speech #16145

Merged
merged 1 commit into from
Feb 11, 2024

Conversation

mltony
Copy link
Contributor

@mltony mltony commented Feb 8, 2024

Link to issue number:

Closes #16143

Summary of the issue:

NVDA reports roles incorrectly when navigating using P quickNav

Description of user facing changes

Fixed speech so that p quickNav command behaves as expected.

Description of development approach

A quick investigation shows that this is the behavior of speech.speakTextInfo(info, reason=OutputReason.QUICKNAV) as called in browseMode.py:216. I didn't change that in textNav PR.

This makes sense for other QuickNav commands. For example on that page if you press B, you get:

Open global navigation menu Button

Note that the word button goes in the end. If you stumble upon the same button via Control+Up/Down then the speech is

Button Open global navigation menu

So since text paragraph navigation is more similar to caret navigation in the sense that it navigates to text that might contain different roles, I propose to change to reason=OutputReason.CARET for text paragraph navigation as it seems to fix this issue.

Testing strategy:

Tested via test case provided in the issue.

Known issues with pull request:

N/A

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@mltony
Copy link
Contributor Author

mltony commented Feb 8, 2024

cc: @Adriani90

@mltony mltony marked this pull request as ready for review February 9, 2024 19:48
@mltony mltony requested a review from a team as a code owner February 9, 2024 19:48
@seanbudd seanbudd merged commit 2b6f77a into nvaccess:master Feb 11, 2024
1 check passed
@nvaccessAuto nvaccessAuto added this to the 2024.2 milestone Feb 11, 2024
Nael-Sayegh pushed a commit to Nael-Sayegh/nvda that referenced this pull request Feb 15, 2024
Closes nvaccess#16143

Summary of the issue:
NVDA reports roles incorrectly when navigating using P quickNav

Description of user facing changes
Fixed speech so that p quickNav command behaves as expected.

Description of development approach
A quick investigation shows that this is the behavior of speech.speakTextInfo(info, reason=OutputReason.QUICKNAV) as called in browseMode.py:216. I didn't change that in textNav PR.

This makes sense for other QuickNav commands. For example on that page if you press B, you get:

Open global navigation menu Button
Note that the word button goes in the end. If you stumble upon the same button via Control+Up/Down then the speech is

Button Open global navigation menu
So since text paragraph navigation is more similar to caret navigation in the sense that it navigates to text that might contain different roles, I propose to change to reason=OutputReason.CARET for text paragraph navigation as it seems to fix this issue.
Adriani90 pushed a commit to Adriani90/nvda that referenced this pull request Mar 13, 2024
Closes nvaccess#16143

Summary of the issue:
NVDA reports roles incorrectly when navigating using P quickNav

Description of user facing changes
Fixed speech so that p quickNav command behaves as expected.

Description of development approach
A quick investigation shows that this is the behavior of speech.speakTextInfo(info, reason=OutputReason.QUICKNAV) as called in browseMode.py:216. I didn't change that in textNav PR.

This makes sense for other QuickNav commands. For example on that page if you press B, you get:

Open global navigation menu Button
Note that the word button goes in the end. If you stumble upon the same button via Control+Up/Down then the speech is

Button Open global navigation menu
So since text paragraph navigation is more similar to caret navigation in the sense that it navigates to text that might contain different roles, I propose to change to reason=OutputReason.CARET for text paragraph navigation as it seems to fix this issue.
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.

Text paragraph navigation: report when entering and leaving a role while reading the paragraph
3 participants