diff options
author | Jose Medrano <josmed@microsoft.com> | 2022-02-25 15:02:14 +0300 |
---|---|---|
committer | vs-mobiletools-engineering-service2 <valco@microsoft.com> | 2022-03-01 18:01:15 +0300 |
commit | 2ca79fd2bc386f01aacbe81119475c540863cb3e (patch) | |
tree | 3b61f95fe7d20b0937aa0bfb181ef82243839d0c | |
parent | ffe26ce676092e8cdc17505c48e17c07758bf1b2 (diff) |
Fix comment
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs index 1043286..9e00331 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs @@ -54,10 +54,7 @@ namespace Xamarin.PropertyEditing.Mac public ProxyResponder ProxyResponder { get { - if (Delegate is KeyUpDownDelegate keydown) { - return keydown.ProxyResponder; - } - return null; + return Delegate is KeyUpDownDelegate viewDownDelegate ? viewDownDelegate.ProxyResponder : null; } set { |