Преглед изворни кода

Commenting GetIsKeyCodeAtoZ contradiction debug check.

BDisp пре 9 месеци
родитељ
комит
ba607f1380
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6 6
      Terminal.Gui/Input/Key.cs

+ 6 - 6
Terminal.Gui/Input/Key.cs

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