From 2ca79fd2bc386f01aacbe81119475c540863cb3e Mon Sep 17 00:00:00 2001 From: Jose Medrano Date: Fri, 25 Feb 2022 13:02:14 +0100 Subject: Fix comment --- Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs | 5 +---- 1 file changed, 1 insertion(+), 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 { -- cgit v1.2.3