Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Corrado <alexc@xamarin.com>2020-02-24 22:59:40 +0300
committerAlex Corrado <alexc@xamarin.com>2020-02-24 22:59:40 +0300
commit5aeedcd46cd8f40a4d342a31fd51f6f42a05c391 (patch)
treee9868696a08125db619729dd94334dc898b11d2b /Xamarin.PropertyEditing.Mac
parentee11c99b67ca79c281d73f2ce2b45abc595b2a8b (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.cs2
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 {