[PR #10516] [A11y] Treat last character as 'end of buffer' #28092

Open
opened 2026-01-31 09:26:16 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/10516

State: closed
Merged: No


Summary of the Pull Request

Updates our UiaTextRange to treat the last legible character as the end of the buffer. Doing so significantly improves performance of word navigation because screen readers no longer have to take into account the whitespace following the end of the prompt.

This also fixes #7960. This bug was caused by the UiaTextRange occasionally having its _blockRange member set to true. As a result, the screen reader would read the block range of text from "start" to "end" as if it was a block selection created by Alt+Mouse.

References

#7000 - Epic
Closes #6986
Closes #7960

Detailed Description of the Pull Request / Additional comments

Coming soon!

Validation Steps Performed

  • Tests added/passed
  • NVDA - manual testing
  • Accessibility Insights - manual testing
  • Narrator - manual testing
**Original Pull Request:** https://github.com/microsoft/terminal/pull/10516 **State:** closed **Merged:** No --- ## Summary of the Pull Request Updates our `UiaTextRange` to treat the last legible character as the end of the buffer. Doing so significantly improves performance of word navigation because screen readers no longer have to take into account the whitespace following the end of the prompt. This also fixes #7960. This bug was caused by the `UiaTextRange` occasionally having its `_blockRange` member set to `true`. As a result, the screen reader would read the block range of text from "start" to "end" as if it was a block selection created by Alt+Mouse. ## References #7000 - Epic Closes #6986 Closes #7960 ## Detailed Description of the Pull Request / Additional comments _Coming soon!_ ## Validation Steps Performed - [ ] Tests added/passed - [x] NVDA - manual testing - [x] Accessibility Insights - manual testing - [ ] Narrator - manual testing
claunia added the pull-request label 2026-01-31 09:26:16 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28092