[PR #4432] Introduce UiaTextRangeBase::FindText() for Accessibility #25769

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

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

State: closed
Merged: No


Summary of the Pull Request

Moved FindText to UiaTextRangeBase. Now that Search is a shared component (thanks #3279), I can just reuse it basically as-is.

References

#3279 - Make Search a shared component
#4018 - UiaTextRange Refactor

PR Checklist

  • Closes #XXX (Doesn't actually close anything... but we need it.)
  • CLA signed.
  • Tests added/passed
  • Requires documentation to be updated

Detailed Description of the Pull Request / Additional comments

I removed it from the two different kinds of UiaTextRange and put it in the base class.

I needed a very minor change to ensure we convert from an inclusive end (from Search) to an exclusive end (in UTR).

Worked with FindText was globally messed with in windows.h. So we had to do a few weird things there (thanks Michael).

No need for additional tests because it literally just sets up a Searcher and calls it.

Validation Steps Performed

I didn't even test this

**Original Pull Request:** https://github.com/microsoft/terminal/pull/4432 **State:** closed **Merged:** No --- ## Summary of the Pull Request Moved `FindText` to `UiaTextRangeBase`. Now that Search is a shared component (thanks #3279), I can just reuse it basically as-is. ## References #3279 - Make Search a shared component #4018 - UiaTextRange Refactor ## PR Checklist * [ ] Closes #XXX (Doesn't actually close anything... but we need it.) * [ ] CLA signed. * [ ] Tests added/passed * [ ] Requires documentation to be updated ## Detailed Description of the Pull Request / Additional comments I removed it from the two different kinds of UiaTextRange and put it in the base class. I needed a very minor change to ensure we convert from an inclusive end (from Search) to an exclusive end (in UTR). Worked with `FindText` was globally messed with in windows.h. So we had to do a few weird things there (thanks Michael). No need for additional tests because it _literally_ just sets up a Searcher and calls it. ## Validation Steps Performed I didn't even test this
claunia added the pull-request label 2026-01-31 09:11:40 +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#25769