Browse Source

fix handling of becomeKeyWindow on OSX.

pull/5538/head
Dan Walmsley 5 years ago
parent
commit
52de38d8a1
  1. 8
      native/Avalonia.Native/src/OSX/window.mm

8
native/Avalonia.Native/src/OSX/window.mm

@ -2068,17 +2068,17 @@ NSArray* AllLoopModes = [NSArray arrayWithObjects: NSDefaultRunLoopMode, NSEvent
-(void)becomeKeyWindow
{
[self showWindowMenuWithAppMenu];
if([self activateAppropriateChild: true])
{
[self showWindowMenuWithAppMenu];
if(_parent != nullptr)
{
_parent->BaseEvents->Activated();
}
[super becomeKeyWindow];
}
[super becomeKeyWindow];
}
-(void) restoreParentWindow;

Loading…
Cancel
Save