Browse Source

Space isn't a control char

closes #185
Nikita Tsukanov 10 năm trước cách đây
mục cha
commit
1523f5a8be
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Windows/Perspex.Win32/WindowImpl.cs

+ 1 - 1
src/Windows/Perspex.Win32/WindowImpl.cs

@@ -299,7 +299,7 @@ namespace Perspex.Win32
                     break;
                 case UnmanagedMethods.WindowsMessage.WM_CHAR:
                     // Ignore control chars
-                    if (wParam.ToInt32() > 32)
+                    if (wParam.ToInt32() >= 32)
                     {
                         e = new RawTextInputEventArgs(WindowsKeyboardDevice.Instance, timestamp,
                             new string((char)wParam.ToInt32(), 1));