소스 검색

Selected->Selecting

Tig 10 달 전
부모
커밋
fc34585256
3개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      Terminal.Gui/View/View.Command.cs
  2. 1 1
      Terminal.Gui/View/View.Mouse.cs
  3. 2 2
      UnitTests/Views/CheckBoxTests.cs

+ 1 - 1
Terminal.Gui/View/View.Command.cs

@@ -29,7 +29,7 @@ public partial class View // Command APIs
                         return true;
                     });
 
-        // Space or single-click - Raise Selected
+        // Space or single-click - Raise Selecting
         AddCommand (Command.Select, (ctx) =>
                                     {
                                         if (RaiseSelecting (ctx) is true)

+ 1 - 1
Terminal.Gui/View/View.Mouse.cs

@@ -371,7 +371,7 @@ public partial class View // Mouse APIs
         // Post-conditions
 
         // Always invoke Select command on MouseClick
-        // By default, this will raise Selected/OnSelected - Subclasses can override this via AddCommand (Command.Select ...).
+        // By default, this will raise Selecting/OnSelecting - Subclasses can override this via AddCommand (Command.Select ...).
         args.Handled = InvokeCommand (Command.Select, ctx: new (Command.Select, key: null, data: args.MouseEvent)) == true;
 
         return args.Handled;

+ 2 - 2
UnitTests/Views/CheckBoxTests.cs

@@ -566,7 +566,7 @@ public class CheckBoxTests (ITestOutputHelper output)
 
         ckb.CheckedState = initialState;
 
-        ckb.Selecting += OnSelected;
+        ckb.Selecting += OnSelecting;
 
         Assert.Equal (initialState, ckb.CheckedState);
         bool? ret = ckb.InvokeCommand (Command.Select);
@@ -576,7 +576,7 @@ public class CheckBoxTests (ITestOutputHelper output)
 
         return;
 
-        void OnSelected (object sender, CommandEventArgs e)
+        void OnSelecting (object sender, CommandEventArgs e)
         {
             checkedInvoked = true;
             e.Cancel = true;