[Mono-bugs] [Bug 80467][Nor] Changed - ListView: Right-click on item does not set focus to ListView

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Feb 15 03:29:38 EST 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by unserkonig at gmail.com.


--- shadow/80467	2007-02-07 13:44:40.000000000 -0500
+++ shadow/80467.tmp.29217	2007-02-15 03:29:37.000000000 -0500
@@ -24,6 +24,23 @@
 2. follow the on-screen instructions.
 ------- Additional Comments From gert.driesen at pandora.be  2007-01-06 05:10 -------
 Created an attachment (id=18456)
+------- Additional Comments From unserkonig at gmail.com  2007-02-15 03:29 -------
+The focus problem is related to Control. The current impl gives focus
+to the control when a left-click mouse down signal is received, but
+focus is not set when a right-click mouse down signal is received.
+In that case, adding the next lines to Control.cs should work:
+                private void WmRButtonDown (ref Message m) {
++                       if (CanSelect)
++                               Select (true, true);
+The problem is that some of my tests show that clicking an instance of
+the Control class should not give the focus to it (as opposed to using
+the tab key). However, our current impl does (clicking set focus for
+the Control instance).

More information about the mono-bugs mailing list