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; } }