diff options
author | Alex Corrado <alexc@xamarin.com> | 2020-02-24 22:59:40 +0300 |
---|---|---|
committer | Alex Corrado <alexc@xamarin.com> | 2020-02-24 22:59:40 +0300 |
commit | 5aeedcd46cd8f40a4d342a31fd51f6f42a05c391 (patch) | |
tree | e9868696a08125db619729dd94334dc898b11d2b /Xamarin.PropertyEditing.Mac | |
parent | ee11c99b67ca79c281d73f2ce2b45abc595b2a8b (diff) |
[Mac] PopoverFocusRestoreDelegate: only restore focus for views in the popover window
Diffstat (limited to 'Xamarin.PropertyEditing.Mac')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/Custom/PopoverFocusRestoreDelegate.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/PopoverFocusRestoreDelegate.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/PopoverFocusRestoreDelegate.cs index 4092a8a..f8283f0 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/PopoverFocusRestoreDelegate.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/PopoverFocusRestoreDelegate.cs @@ -38,7 +38,7 @@ namespace Xamarin.PropertyEditing.Mac if (window != null && keyPath == key) { if (!ignore) { var firstResponder = change [ChangeNewKey] as NSResponder; - if (firstResponder != null && !(firstResponder is NSWindow)) + if (firstResponder != null && !(firstResponder is NSWindow) && (!(firstResponder is NSView view) || view.Window == window)) this.prevFirstResponder = ResolveResponder (firstResponder); } } else { |