|
|
|
@ -518,6 +518,11 @@ public: |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
virtual void FocusChanged(IAvnAutomationPeer* peer) override |
|
|
|
{ |
|
|
|
NSAccessibilityPostNotification(Window, NSAccessibilityFocusedUIElementChangedNotification); |
|
|
|
} |
|
|
|
|
|
|
|
protected: |
|
|
|
virtual NSWindowStyleMask GetStyle() |
|
|
|
{ |
|
|
|
@ -2301,6 +2306,18 @@ NSArray* AllLoopModes = [NSArray arrayWithObjects: NSDefaultRunLoopMode, NSEvent |
|
|
|
return GetAccessibilityElement(hit); |
|
|
|
} |
|
|
|
|
|
|
|
- (id)accessibilityFocusedUIElement |
|
|
|
{ |
|
|
|
auto peer = [self getAutomationPeer]; |
|
|
|
|
|
|
|
if (peer->IsRootProvider()) |
|
|
|
{ |
|
|
|
return GetAccessibilityElement(peer->RootProvider_GetFocus()); |
|
|
|
} |
|
|
|
|
|
|
|
return [super accessibilityFocusedUIElement]; |
|
|
|
} |
|
|
|
|
|
|
|
- (IAvnAutomationPeer* _Nonnull) getAutomationPeer |
|
|
|
{ |
|
|
|
if (_automationPeer == nullptr) |
|
|
|
|