From 4be0af567f0632b2e997aceba495eb270e76b3ed Mon Sep 17 00:00:00 2001 From: Tig Date: Sun, 9 Jun 2024 15:48:15 -0600 Subject: [PATCH] Reverted files that didn't need changes --- Terminal.Gui/Views/Button.cs | 2 +- Terminal.Gui/Views/CheckBox.cs | 4 ++-- Terminal.Gui/Views/ColorPicker.cs | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Terminal.Gui/Views/Button.cs b/Terminal.Gui/Views/Button.cs index a065d45fd..2d922a79f 100644 --- a/Terminal.Gui/Views/Button.cs +++ b/Terminal.Gui/Views/Button.cs @@ -53,7 +53,7 @@ public class Button : View HighlightStyle |= HighlightStyle.Hover; #endif // Override default behavior of View - AddCommand (Command.HotKey, ctx => + AddCommand (Command.HotKey, () => { SetFocus (); return !OnAccept (); diff --git a/Terminal.Gui/Views/CheckBox.cs b/Terminal.Gui/Views/CheckBox.cs index fce1f0e89..471ab5203 100644 --- a/Terminal.Gui/Views/CheckBox.cs +++ b/Terminal.Gui/Views/CheckBox.cs @@ -25,8 +25,8 @@ public class CheckBox : View CanFocus = true; // 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 KeyBindings.Add (Key.Space, Command.Accept); diff --git a/Terminal.Gui/Views/ColorPicker.cs b/Terminal.Gui/Views/ColorPicker.cs index b9f0116b6..addf7a1a4 100644 --- a/Terminal.Gui/Views/ColorPicker.cs +++ b/Terminal.Gui/Views/ColorPicker.cs @@ -195,10 +195,10 @@ public class ColorPicker : View /// Add the commands. 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 ()); } /// Add the KeyBindinds.