Author: andreia
Date: 2007-05-16 13:12:52 -0400 (Wed, 16 May 2007)
New Revision: 77489

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs
Log:
* ContainerControl.cs: only process tab key if there are no 
modifier keys present, otherwise the control does the 
tab processing, if it needs to. Fixes #81622
* TabControl.cs: Fixes calculation for which tab to select on
shift+ctrl+tab.

2007-05-16  Andreia Gaita <[EMAIL PROTECTED]> 

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-05-16 16:44:43 UTC (rev 77488)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-05-16 17:12:52 UTC (rev 77489)
@@ -1,3 +1,11 @@
+2007-05-16  Andreia Gaita <[EMAIL PROTECTED]> 
+
+       * ContainerControl.cs: only process tab key if there are no 
+       modifier keys present, otherwise the control does the 
+       tab processing, if it needs to. Fixes #81622
+       * TabControl.cs: Fixes calculation for which tab to select on
+       shift+ctrl+tab.
+
 2007-05-16  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
 
        * MaskedTextBox.cs: Small fix for Text that fixes a broken test.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs  
    2007-05-16 16:44:43 UTC (rev 77488)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs  
    2007-05-16 17:12:52 UTC (rev 77489)
@@ -425,8 +425,10 @@
 
                        switch (key) {
                                case Keys.Tab: {
-                                       if (ProcessTabKey((Control.ModifierKeys 
& Keys.Shift) == 0)) {
-                                               return true;
+                                       if ((keyData & (Keys.Alt | 
Keys.Control)) == Keys.None) {
+                                               if (ProcessTabKey 
((Control.ModifierKeys & Keys.Shift) == 0)) {
+                                                       return true;
+                                               }
                                        }
                                        break;
                                }

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs    
2007-05-16 16:44:43 UTC (rev 77488)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs    
2007-05-16 17:12:52 UTC (rev 77489)
@@ -586,7 +586,7 @@
                                if ((e.KeyData & Keys.Shift) == 0)
                                        SelectedIndex = (SelectedIndex + 1) % 
TabCount;
                                else
-                                       SelectedIndex = (SelectedIndex - 1) % 
TabCount;
+                                       SelectedIndex = (SelectedIndex + 
TabCount - 1) % TabCount;
                                e.Handled = true;
                        } else if (e.KeyCode == Keys.Home) {
                                SelectedIndex = 0;

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

Reply via email to