2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
authorPeter Dennis Bartok <pbartok@mono-cvs.ximian.com>
Wed, 23 Aug 2006 19:58:16 +0000 (19:58 -0000)
committerPeter Dennis Bartok <pbartok@mono-cvs.ximian.com>
Wed, 23 Aug 2006 19:58:16 +0000 (19:58 -0000)
* Control.cs: We should call IsInputChar on only on WM_CHAR but not
  on WM_SYSCHAR messages (fixes #79053)

svn path=/trunk/mcs/; revision=64272

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs

index 97f4e0b6ef2fdb0bd3ca3f44cf2c881a32801892..fbd342677b4af2a3b2b72d7b4f38b66db12193af 100644 (file)
@@ -1,3 +1,8 @@
+2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
+
+       * Control.cs: We should call IsInputChar on only on WM_CHAR but not
+         on WM_SYSCHAR messages (fixes #79053)
+
 2006-08-23  Chris Toshok  <toshok@ximian.com>
 
        * DataGrid.cs: fix flickering when scrolling vertically.
index 24412c3a93825e1f714b9faee55a55130f051f3e..f6afd3f713b564d321c94aabbe0ae327dba98e03 100644 (file)
@@ -3075,10 +3075,8 @@ namespace System.Windows.Forms
                                if (IsInputChar((char)msg.WParam)) {
                                        return false;
                                }
+                               return ProcessDialogChar((char)msg.WParam);
                        } else if (msg.Msg == (int)Msg.WM_SYSCHAR) {
-                               if (IsInputChar((char)msg.WParam)) {
-                                       return false;
-                               }
                                return ProcessDialogChar((char)msg.WParam);
                        }
                        return false;