Browse Source

Fix accessibilityWindow.

Seems it was broken before and always would have returned null.
pull/12330/head
Steven Kirk 3 years ago
parent
commit
1b2d3948d0
  1. 4
      native/Avalonia.Native/src/OSX/automation.mm

4
native/Avalonia.Native/src/OSX/automation.mm

@ -291,8 +291,8 @@ private:
- (id)accessibilityWindow
{
id topLevel = [self accessibilityTopLevelUIElement];
return [topLevel isKindOfClass:[NSWindow class]] ? topLevel : nil;
auto rootPeer = _peer->GetVisualRoot();
return [AvnAccessibilityElement acquire:rootPeer];
}
- (BOOL)isAccessibilityExpanded

Loading…
Cancel
Save