Skip to content

UIA Providers misrepresent box selections #4509

@carlos-zamora

Description

@carlos-zamora

Summary

Our TermControlUiaProvider (aka ScreenInfoUiaProvider) assumes that a retrieved selection is always a line selection.

Technical Details

ScreenInfoUiaProviderBase::GetSelection() returns a UiaTextRange for the endpoints of the selection (after a brief inclusive/exclusive conversion). We need two modifications here:

  1. ScreenInfoUiaProviderBase should check if the selection is a box selection or a line selection. And should create a different branch for each of those options.
  2. UiaTextRangeBase needs...
  • a constructor for a box selection UTR
  • a flag to know if it is in this style
  • a new bounding rect for a UTR of this style
  • a modified way to retrieve text for this
  • (?) modify Select to make a box selection? not needed. How selections are made is already abstracted to the selection code, not UIA providers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-AccessibilityIssues related to accessibilityIssue-TaskIt's a feature request, but it doesn't really need a major design.Product-ConhostFor issues in the Console codebaseProduct-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions