Skip to content

Support find commands in content recognition results #7415

@jcsteh

Description

@jcsteh

It's not possible to use the find command when reading the result of content recognition; e.g. NVDA+r. From @LeonarddeR in #7361 (comment):

It is not possible to use the find functionality for the resulting cursor manager. You can open the find dialog and even find something, but as soon as you return, the focus will return back to the original focus object.

This occurs because the find command brings up a dialog and thus causes the fake focus to be lost. For #7361, I simply disabled the commands. However, this would be nice to support.

We can extend CursorManager.doFindText to first focus the result object again. The problem is that doFindText might bring up another dialog if the search fails and that one doesn't have a callback once dismissed. So, we might need to introduce some new overridable methods or something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurefeature/ocrRelated to Optical Character Recognition feature in NVDA

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions