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:
authorJose Medrano <josmed@microsoft.com>2022-02-25 15:02:14 +0300
committervs-mobiletools-engineering-service2 <valco@microsoft.com>2022-03-01 18:01:15 +0300
commit2ca79fd2bc386f01aacbe81119475c540863cb3e (patch)
tree3b61f95fe7d20b0937aa0bfb181ef82243839d0c
parentffe26ce676092e8cdc17505c48e17c07758bf1b2 (diff)
Fix comment
-rw-r--r--Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs5
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
{