Author: jackson
Date: 2006-11-27 08:33:18 -0500 (Mon, 27 Nov 2006)
New Revision: 68510

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
Log:

      * TextBoxBase.cs: Set the selection to the caret after
        the caret
        is moved, otherwise they get out of sync.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-27 13:32:19 UTC (rev 68509)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-27 13:33:18 UTC (rev 68510)
@@ -1,3 +1,8 @@
+2006-11-27  Jackson Harper  <[EMAIL PROTECTED]>
+
+       * TextBoxBase.cs: Set the selection to the caret after the caret
+       is moved, otherwise they get out of sync.
+
 2006-11-26  Everaldo Canuto  <[EMAIL PROTECTED]>
 
        * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs   
2006-11-27 13:32:19 UTC (rev 68509)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs   
2006-11-27 13:33:18 UTC (rev 68510)
@@ -997,7 +997,6 @@
                                                if (document.selection_visible) 
{
                                                        
document.ReplaceSelection("");
                                                }
-                                               
document.SetSelectionToCaret(true);
 
                                                line = document.CaretLine;
 
@@ -1005,6 +1004,7 @@
                                                OnTextChanged(EventArgs.Empty);
                                                document.UpdateView(line, 2, 0);
                                                
document.MoveCaret(CaretDirection.CharForward);
+                                               
document.SetSelectionToCaret(true);
                                                CaretMoved(this, null);
                                                return true;
                                        }

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

Reply via email to