Author: jackson
Date: 2006-12-11 18:36:13 -0500 (Mon, 11 Dec 2006)
New Revision: 69375
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
Log:
- Only do selection with the left mouse button.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-12-11 23:25:43 UTC (rev 69374)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-12-11 23:36:13 UTC (rev 69375)
@@ -2,6 +2,7 @@
* TextBoxBase.cs: We need to cap this value, since Maximum -
ViewPortHeight can be less than zero.
+ - Only do selection with the left mouse button.
* TextBox.cs: Don't tell the world that we have a context menu.
* Control.cs: New method so that we can control whether or not the
context menu is visible outside MWF.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2006-12-11 23:25:43 UTC (rev 69374)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2006-12-11 23:36:13 UTC (rev 69375)
@@ -1760,7 +1760,7 @@
private void TextBoxBase_MouseMove(object sender,
MouseEventArgs e) {
// FIXME - handle auto-scrolling if mouse is to the
right/left of the window
- if (Capture) {
+ if (e.Button == MouseButtons.Left && Capture) {
if (!ClientRectangle.Contains (e.X, e.Y)) {
if (scroll_timer == null) {
scroll_timer = new Timer ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches