Author: pbartok
Date: 2006-05-15 16:29:04 -0400 (Mon, 15 May 2006)
New Revision: 60722

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
Log:
2006-05-15  Peter Dennis Bartok  <[EMAIL PROTECTED]> 

        * TextBoxBase.cs: Added handling of middle-button paste for X11. 
(#78375)



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-05-15 20:07:18 UTC (rev 60721)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-05-15 20:29:04 UTC (rev 60722)
@@ -1,3 +1,7 @@
+2006-05-15  Peter Dennis Bartok  <[EMAIL PROTECTED]> 
+
+       * TextBoxBase.cs: Added handling of middle-button paste for X11. 
(#78375)
+
 2006-05-15  Peter Dennis Bartok  <[EMAIL PROTECTED]>
 
        * Cursors.cs: For X11, read NWSE and NESW cursors from our resource

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs   
2006-05-15 20:07:18 UTC (rev 60721)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs   
2006-05-15 20:29:04 UTC (rev 60722)
@@ -1361,6 +1361,18 @@
                                return;
                        }
 
+                       if ((e.Button == MouseButtons.Middle) && 
(((int)Environment.OSVersion.Platform == 4) || 
((int)Environment.OSVersion.Platform == 128))) {
+                               Document.Marker marker;
+
+                               marker.tag = document.FindCursor(e.X + 
document.ViewPortX, e.Y + document.ViewPortY, out marker.pos);
+                               marker.line = marker.tag.line;
+                               marker.height = marker.tag.height;
+
+                               document.SetSelection(marker.line, marker.pos, 
marker.line, marker.pos);
+                               Paste();
+
+                       }
+
                        #if Debug
                                LineTag tag;
                                Line    line;

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

Reply via email to