Julien Lebosquain
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
9 additions and
0 deletions
-
native/Avalonia.Native/src/OSX/PopupImpl.mm
|
|
|
@ -42,6 +42,15 @@ public: |
|
|
|
|
|
|
|
return WindowBaseImpl::Show(activate, true); |
|
|
|
} |
|
|
|
|
|
|
|
virtual bool ShouldTakeFocusOnShow() override |
|
|
|
{ |
|
|
|
// Don't steal the focus from another windows if our parent is inactive |
|
|
|
if (Parent != nullptr && Parent->Window != nullptr && ![Parent->Window isKeyWindow]) |
|
|
|
return false; |
|
|
|
|
|
|
|
return WindowBaseImpl::ShouldTakeFocusOnShow(); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|