Skip to content

Auto-refresh hints when accessibility tree changes #1002

Description

@gabrielecirulli

Pre-flight checks

  • I have searched existing issues and discussions and this has not been requested yet

Category

Navigation (hints, grid, recursive grid, scroll)

Target platform

macOS

Problem or use case

There's a setting that auto-refreshes hints when an action is committed: mouse_action_refresh_delay = 0.

The problem is some applications are slow to update their UI after an action, and sometimes flaky.

Proposed solution

If feasible from a performance perspective, it would be great for the hints to auto-update at any moment in their lifecycle when anything on screen changes, or maybe when the accessibility tree changes. There might be macOS APIs that allow us to detect this without having to poll for changes.

Alternatives considered

No response

Screenshots / mockups

mouse_action_refresh_delay can also work when set to a longer delay, but slows down your workflow and won't work in flaky scenarios like electron apps or web navigation

Another alternative is to bind a manual refresh key, in my case cmd+r

Contribution

  • I'm willing to submit a PR for this feature

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions