Skip to content

Some UIA text ranges have no apparent bottom #12808

@codeofdusk

Description

@codeofdusk

Steps to reproduce:

In various modern UIA text providers (notepad with UIA forceably enabled with nav.appModule.isGoodUIAWindow = lambda hwnd: True in console), an upcoming/private build of conhost, and Word/Edgium with UIA enabled):

  1. Navigate to the last line of text with the review cursor.
  2. Attempt to move to the next line of text.

Actual behavior:

The review cursor is moved to the end of the current line, and "bottom" is not announced. Technical: UIATextInfo.move (IUIAutomationTextRange::move) returns 1.

Expected behavior:

"bottom" is announced.

Context:

It seems that, per Microsoft Word's behaviour (other UIA providers are copying this): when moving a degenerate (collapsed) range past the end of the document, the correct UIA behaviour is to permit the move and move to the end of the requested unit, whereas expanded ranges should not permit the move when attempting to go past the end. Is this correct UIA behaviour (the docs seem unclear) and therefore an NVDA bug, or are providers incorrectly implementing this (so I should raise it upstream)? Cc @csauls, @michaelDCurran and @LeonarddeR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions