Reverted files that didn't need changes

This commit is contained in:
Tig
2024-06-09 15:48:15 -06:00
parent 558384dd77
commit 4be0af567f
3 changed files with 7 additions and 7 deletions

View File

@@ -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 ();

View File

@@ -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);

View File

@@ -195,10 +195,10 @@ public class ColorPicker : View
/// <summary>Add the commands.</summary>
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>