Author: mkestner
Date: 2006-05-18 14:47:23 -0400 (Thu, 18 May 2006)
New Revision: 60831
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
Log:
2006-05-18 Mike Kestner <[EMAIL PROTECTED]>
* ListView.cs: do focused item selection like MS on clicks.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-05-18 17:31:30 UTC (rev 60830)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-05-18 18:47:23 UTC (rev 60831)
@@ -1,3 +1,7 @@
+2006-05-18 Mike Kestner <[EMAIL PROTECTED]>
+
+ * ListView.cs: do focused item selection like MS on clicks.
+
2006-05-17 Peter Dennis Bartok <[EMAIL PROTECTED]>
* XplatUIX11.cs: If client_window ends up being width or height zero
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
2006-05-18 17:31:30 UTC (rev 60830)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
2006-05-18 18:47:23 UTC (rev 60831)
@@ -1406,9 +1406,9 @@
}
}
- owner.SetFocusedItem (clicked_item);
if (clicked_item != null) {
+ owner.SetFocusedItem (clicked_item);
bool changed = !clicked_item.Selected;
if (owner.MultiSelect &&
(XplatUI.State.ModifierKeys & Keys.Control) == 0)
owner.UpdateMultiSelection
(clicked_item.Index);
@@ -1425,6 +1425,8 @@
else if (me.Clicks == 1 && clicked_item
!= null)
owner.OnClick (EventArgs.Empty);
} else {
+ if (owner.FocusedItem == null)
+ owner.SetFocusedItem
(owner.Items [0]);
if (owner.MultiSelect) {
Keys mods =
XplatUI.State.ModifierKeys;
if ((mods & Keys.Shift) != 0)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches