diff options
author | Alex Corrado <alexc@xamarin.com> | 2020-02-24 22:40:27 +0300 |
---|---|---|
committer | Alex Corrado <alexc@xamarin.com> | 2020-02-24 22:40:27 +0300 |
commit | ee11c99b67ca79c281d73f2ce2b45abc595b2a8b (patch) | |
tree | cb17d7e4c79025ee9a6edcdcdd785dfdfb7eb058 /Xamarin.PropertyEditing.Mac/Controls | |
parent | e5f4958515ddd97ab2ace848a3ac7563619ce9b5 (diff) |
[Mac] Don't mess with the focus for EmptyBrushEditorViewController
This was causing focus to incorrectly jump to a different tab.
The focus goes to the right place by default anyway.
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/Custom/EmptyBrushEditorViewController.cs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/EmptyBrushEditorViewController.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/EmptyBrushEditorViewController.cs index 0c77e8b..71a56bc 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/EmptyBrushEditorViewController.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/EmptyBrushEditorViewController.cs @@ -21,16 +21,5 @@ namespace Xamarin.PropertyEditing.Mac Enabled = false }; } - - public override void ViewDidLayout () - { - base.ViewDidLayout (); - - if (ParentViewController is BrushTabViewController pc) { - if (pc.Selected is TabButton tb) { - View.Window?.MakeFirstResponder (tb); - } - } - } } } |