We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f29675d commit aa9ce85Copy full SHA for aa9ce85
native/Avalonia.Native/src/OSX/PopupImpl.mm
@@ -42,6 +42,15 @@ virtual HRESULT Show(bool activate, bool isDialog) override
42
43
return WindowBaseImpl::Show(activate, true);
44
}
45
+
46
+ virtual bool ShouldTakeFocusOnShow() override
47
+ {
48
+ // Don't steal the focus from another windows if our parent is inactive
49
+ if (Parent != nullptr && Parent->Window != nullptr && ![Parent->Window isKeyWindow])
50
+ return false;
51
52
+ return WindowBaseImpl::ShouldTakeFocusOnShow();
53
+ }
54
};
55
56
0 commit comments