Author: calberto
Date: 2007-07-05 02:55:33 -0400 (Thu, 05 Jul 2007)
New Revision: 81372

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
Log:
        * ListView.cs: When enter is pressed and selection is non empty,
        an OnItemActivate event must be fired.

2007-07-05  Carlos Alberto Cortez <[EMAIL PROTECTED]>



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-07-05 05:36:19 UTC (rev 81371)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-07-05 06:55:33 UTC (rev 81372)
@@ -1,5 +1,10 @@
 2007-07-05  Carlos Alberto Cortez <[EMAIL PROTECTED]>
 
+       * ListView.cs: When enter is pressed and selection is non empty,
+       an OnItemActivate event must be fired.
+
+2007-07-05  Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
        * ListView.cs: Store the FocusedItem information as an
        int instead of a ListViewItem (needed by VirtualMode).
        Update the calls to SetFocusedItem to pass an index instead of

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2007-07-05 05:36:19 UTC (rev 81371)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2007-07-05 06:55:33 UTC (rev 81372)
@@ -1828,6 +1828,10 @@
                        case Keys.Space:
                                ToggleItemsCheckState ();
                                break;
+                       case Keys.Enter:
+                               if (selected_indices.Count > 0)
+                                       OnItemActivate (EventArgs.Empty);
+                               break;
 
                        default:
                                return false;

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

Reply via email to