-
-
Notifications
You must be signed in to change notification settings - Fork 783
Add a getObjectFromPointRedirect method on the NVDAObject class #16788
Copy link
Copy link
Closed
Labels
Addon/APIChanges to NVDA's API for addons to support addon development.Changes to NVDA's API for addons to support addon development.p5https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priorityhttps://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#prioritytriagedHas been triaged, issue is waiting for implementation.Has been triaged, issue is waiting for implementation.
Metadata
Metadata
Assignees
Labels
Addon/APIChanges to NVDA's API for addons to support addon development.Changes to NVDA's API for addons to support addon development.p5https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priorityhttps://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#prioritytriagedHas been triaged, issue is waiting for implementation.Has been triaged, issue is waiting for implementation.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Add a getObjectFromPointRedirect method on the NVDAObject class that takes x and y coordinates as parameters and returns None in the default implementation. Call this method inside the objectFromPoint method, and send the x and y coordinates as parameters. If it returns an object, treat that object as the new objectFromPoint. In this way, add-ons can implement proper mouse reading and touch support for objects that has a location that differs from the location provided by the API class. This is useful if you for example are implementing support for a custom list control that don't support any accessibillity apis, and have to rely on win32 messages. The objectFromPoint method will normaly just return the root object. You could then implement getObjectFromPointRedirect on it to instead return the list item in that exact location.
Describe alternatives you've considered
None
Additional context