From ba607f13804e1512a8e05289abae1322af5f06e0 Mon Sep 17 00:00:00 2001 From: BDisp Date: Thu, 31 Oct 2024 20:14:22 +0000 Subject: [PATCH] Commenting GetIsKeyCodeAtoZ contradiction debug check. --- Terminal.Gui/Input/Key.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Terminal.Gui/Input/Key.cs b/Terminal.Gui/Input/Key.cs index 11f8d938e..d69552aa6 100644 --- a/Terminal.Gui/Input/Key.cs +++ b/Terminal.Gui/Input/Key.cs @@ -208,13 +208,13 @@ public class Key : EventArgs, IEquatable get => _keyCode; init { -#if DEBUG - if (GetIsKeyCodeAtoZ (value) && (value & KeyCode.Space) != 0) - { - throw new ArgumentException ($"Invalid KeyCode: {value} is invalid.", nameof (value)); - } +//#if DEBUG +// if (GetIsKeyCodeAtoZ (value) && (value & KeyCode.Space) != 0) +// { +// throw new ArgumentException ($"Invalid KeyCode: {value} is invalid.", nameof (value)); +// } -#endif +//#endif _keyCode = value; } }