Commenting GetIsKeyCodeAtoZ contradiction debug check.

This commit is contained in:
BDisp
2024-10-31 20:14:22 +00:00
parent 1b6963f8db
commit ba607f1380

View File

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