toggle quoted messageShow quoted text
The reason is because when an appModule or globalPlugin's chooseNVDAObjectOverlayClasses method is executed, other overlayClasses, such as List, have not yet been applied to the NVDAObject. They should however already be in clsList, and you could check for that. E.g. if List in clsList.
On 11/03/2020 10:34 pm, Alberto Buffolino wrote:
refactoring my add-on ColumnsReview:
according to an old Joseph's observation, I modified the chooseNVDAObjectOverlayClasses, changing these lines from:
if announceEmptyList and obj.role == ct.ROLE_LIST and "listview" in obj.windowClassName.lower():
if announceEmptyList and isinstance(obj, List):
But, for some reason, it works only in the first way. I'm confused, because if I open NVDA console over the list object, and check manually the isinstance condition, this is true.
Can someone provide a explanation?
Thanks in advance.