Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support UIA LabeledBy property (#17443)
Fixes #17442 Summary of the issue: UIA has a UIA_LabeledByPropertyId property, see https://learn.microsoft.com/en-us/windows/win32/winauto/uiauto-automation-element-propids : Identifies the LabeledBy property, which is an automation element that contains the text label for this element. This property can be used to retrieve, for example, the static text label for a combo box. Variant type: VT_UNKNOWN Default value: NULL However, that one was so far not taken into account by NVDA's "labeledBy" property for UIA elements. Description of user facing changes None, unless they're using the Python console or addons making use of the property. Description of development approach Override NVDAObject._get_labeledBy in UIA to retrieve and return the UIAElement reported by the UIA_LabeledByPropertyId property.
- Loading branch information