mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Commenting GetIsKeyCodeAtoZ contradiction debug check.
This commit is contained in:
@@ -208,13 +208,13 @@ public class Key : EventArgs, IEquatable<Key>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user