Browse Source

Fix merge errors.

BDisp 9 tháng trước cách đây
mục cha
commit
a6234da334

+ 4 - 4
Terminal.Gui/Views/ColorPicker.Prompt.cs

@@ -31,10 +31,10 @@ public partial class ColorPicker
             IsDefault = true
         };
 
-        btnOk.Accept += (s, e) =>
+        btnOk.Accepting += (s, e) =>
                         {
                             accept = true;
-                            e.Handled = true;
+                            e.Cancel = true;
                             Application.RequestStop ();
                         };
 
@@ -46,9 +46,9 @@ public partial class ColorPicker
             Width = Dim.Auto ()
         };
 
-        btnCancel.Accept += (s, e) =>
+        btnCancel.Accepting += (s, e) =>
                             {
-                                e.Handled = true;
+                                e.Cancel = true;
                                 Application.RequestStop ();
                             };
 

+ 1 - 1
Terminal.Gui/Views/TextView.cs

@@ -2859,7 +2859,7 @@ public class TextView : View
             }
 
             GetSelectedRegion ();
-            Selecting = false;
+            IsSelecting = false;
 
             _historyText.Add (
                               [.. selectedCellsOriginal],

+ 2 - 2
UnitTests/Views/TextViewTests.cs

@@ -8954,7 +8954,7 @@ Error   ";
         tv.SelectionStartRow = 0;
         Assert.Equal ($"TopLevel{Environment.NewLine}Base{Environment.NewLine}Dialog", tv.SelectedText);
         tv.Copy ();
-        tv.Selecting = false;
+        tv.IsSelecting = false;
         tv.CursorPosition = new (2, 4);
         tv.Paste ();
         Application.Refresh ();
@@ -8989,7 +8989,7 @@ Dialogror ";
                       tv.SelectedText
                      );
         tv.Copy ();
-        tv.Selecting = false;
+        tv.IsSelecting = false;
         tv.CursorPosition = new (2, 4);
         tv.Paste ();
         Application.Refresh ();