mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Reverted files that didn't need changes
This commit is contained in:
@@ -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 ();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user