浏览代码

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