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.