Author: mkestner
Date: 2005-12-05 13:37:42 -0500 (Mon, 05 Dec 2005)
New Revision: 53937

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Keyboard.cs
Log:

2005-12-05  Mike Kestner  <[EMAIL PROTECTED]>

        * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
        * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.


Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-12-05 17:46:57 UTC (rev 53936)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-12-05 18:37:42 UTC (rev 53937)
@@ -1,3 +1,8 @@
+2005-12-05  Mike Kestner  <[EMAIL PROTECTED]>
+
+       * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
+       * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
+
 2005-12-04  Alexander Olk  <[EMAIL PROTECTED]>
 
        * ThemeClearlooks.cs: Initial check-in, activate with

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2005-12-05 17:46:57 UTC (rev 53936)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2005-12-05 18:37:42 UTC (rev 53937)
@@ -2672,6 +2672,8 @@
 
                        if ((msg.Msg == (int)Msg.WM_KEYDOWN) || (msg.Msg == 
(int)Msg.WM_SYSKEYDOWN)) {
                                key_data = (Keys)msg.WParam.ToInt32();
+                               if (((int)msg.LParam & 0x20000000) > 0)
+                                       key_data |= Keys.Alt;
                                if (!ProcessCmdKey(ref msg, key_data)) {
                                        if (IsInputKey(key_data)) {
                                                return true;

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Keyboard.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Keyboard.cs   
2005-12-05 17:46:57 UTC (rev 53936)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Keyboard.cs   
2005-12-05 18:37:42 UTC (rev 53937)
@@ -281,7 +281,10 @@
                        MSG msg = new MSG ();
                        msg.message = message;
                        msg.wParam = (IntPtr) vkey;
-                       msg.lParam = IntPtr.Zero;
+                       if ((key_state_table [(int) VirtualKeys.VK_MENU] & 
0x80) != 0)
+                               msg.lParam = new IntPtr (0x20000000);
+                       else
+                               msg.lParam = IntPtr.Zero;
 
                        return msg;
                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to