diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2022-07-17 20:26:28 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2022-07-17 20:26:28 +0200 |
| commit | 9d786ab096ed36ea384e03ee5cea498790e31eec (patch) | |
| tree | adee54b5b90a35238d5794e9ffd3ebcf65798a06 /Samples/BasicTests | |
| parent | 57daad000aa31c7bcfa1f76b90d40da5a21da041 (diff) | |
wip
Diffstat (limited to 'Samples/BasicTests')
| -rw-r--r-- | Samples/BasicTests/BasicTests.cs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Samples/BasicTests/BasicTests.cs b/Samples/BasicTests/BasicTests.cs index 130171aa..7506d27d 100644 --- a/Samples/BasicTests/BasicTests.cs +++ b/Samples/BasicTests/BasicTests.cs @@ -12,19 +12,19 @@ namespace Samples static void Main () { using (BasicTests app = new BasicTests ()) { - app.SolidBackground = false; + //app.SolidBackground = false; app.Run (); } } protected override void OnInitialized () { - Commands = new CommandGroup ( + /*Commands = new CommandGroup ( new Crow.Command("command1", new Action(() => Console.WriteLine ("command1 triggered"))), new Crow.Command("command2", new Action(() => Console.WriteLine ("command2 triggered"))), new Crow.Command("command3", new Action(() => Console.WriteLine ("command3 triggered"))), new Crow.Command("command4", new Action(() => Console.WriteLine ("command4 triggered"))) - ); + );*/ // += KeyboardKeyDown1; @@ -55,12 +55,10 @@ namespace Samples int idx = 0; string [] testFiles; - - - public override bool OnKeyDown (Key key) + public override bool OnKeyDown (KeyEventArgs e) { try { - switch (key) { + switch (e.Key) { case Key.Escape: Quit (); break; @@ -75,7 +73,7 @@ namespace Samples NotifyValueChanged ("TestList", TestList); break; default: - return base.OnKeyDown (key); + return base.OnKeyDown (e); } ClearInterface (); |