Przeglądaj źródła

Reverted files that didn't need changes

Tig 1 rok temu
rodzic
commit
4be0af567f

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

@@ -53,7 +53,7 @@ public class Button : View
         HighlightStyle |= HighlightStyle.Hover;
         HighlightStyle |= HighlightStyle.Hover;
 #endif
 #endif
         // Override default behavior of View
         // Override default behavior of View
-        AddCommand (Command.HotKey, ctx =>
+        AddCommand (Command.HotKey, () =>
         {
         {
             SetFocus ();
             SetFocus ();
             return !OnAccept ();
             return !OnAccept ();

+ 2 - 2
Terminal.Gui/Views/CheckBox.cs

@@ -25,8 +25,8 @@ public class CheckBox : View
         CanFocus = true;
         CanFocus = true;
 
 
         // Things this view knows how to do
         // Things this view knows how to do
-        AddCommand (Command.Accept, ctx => OnToggled ());
-        AddCommand (Command.HotKey, ctx => OnToggled ());
+        AddCommand (Command.Accept, OnToggled);
+        AddCommand (Command.HotKey, OnToggled);
 
 
         // Default keybindings for this view
         // Default keybindings for this view
         KeyBindings.Add (Key.Space, Command.Accept);
         KeyBindings.Add (Key.Space, Command.Accept);

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

@@ -195,10 +195,10 @@ public class ColorPicker : View
     /// <summary>Add the commands.</summary>
     /// <summary>Add the commands.</summary>
     private void AddCommands ()
     private void AddCommands ()
     {
     {
-        AddCommand (Command.Left, (ctx) => MoveLeft ());
-        AddCommand (Command.Right, (ctx) => MoveRight ());
-        AddCommand (Command.LineUp, (ctx) => MoveUp ());
-        AddCommand (Command.LineDown, (ctx) => MoveDown ());
+        AddCommand (Command.Left, () => MoveLeft ());
+        AddCommand (Command.Right, () => MoveRight ());
+        AddCommand (Command.LineUp, () => MoveUp ());
+        AddCommand (Command.LineDown, () => MoveDown ());
     }
     }
 
 
     /// <summary>Add the KeyBindinds.</summary>
     /// <summary>Add the KeyBindinds.</summary>