[PR #3805] UIA Word Navigation: Import Custom Word Delimiters #25516

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

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

State: closed
Merged: Yes


Summary of the Pull Request

This allows the developer to define word delimiters for our accessibility model via multiple avenues.

  1. import a word delimiter into the constructor of the ScreenInfoUiaProvider (SIUP)
  • this defines a word delimiter for all the UiaTextRanges (UTR) created by in this context
  1. import a word delimiter into the UTR directly
  • this provides more control over what a "word" is
  • this can be useful if you have an idea of what text a particular UTR will encounter and you want to customize the word navigation for it (i.e consider adding / or \\ for file paths)

The default param of " " is scattered throughout because this is the word delimiter used in the English language.

References

#3659
#3161

**Original Pull Request:** https://github.com/microsoft/terminal/pull/3805 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request This allows the developer to define word delimiters for our accessibility model via multiple avenues. 1. import a word delimiter into the constructor of the `ScreenInfoUiaProvider` (SIUP) - this defines a word delimiter for _all_ the `UiaTextRange`s (UTR) created by in this context 2. import a word delimiter into the UTR directly - this provides more control over what a "word" is - this can be useful if you have an idea of what text a particular UTR will encounter and you want to customize the word navigation for it (i.e consider adding `/` or `\\` for file paths) The default param of `" "` is scattered throughout because this is the word delimiter used in the English language. ## References #3659 #3161
claunia added the pull-request label 2026-01-31 09:10:00 +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#25516