mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 08:50:25 +01:00
Combined KeyBinding classes
This commit is contained in:
@@ -140,12 +140,12 @@ public class KeyboardTests
|
||||
Application.KeyBindings.Add (Key.A, Command.Accept);
|
||||
Application.KeyBindings.Add (Key.B, Command.Accept);
|
||||
|
||||
Assert.True (Application.KeyBindings.TryGet (Key.A, out ApplicationKeyBinding binding));
|
||||
Assert.True (Application.KeyBindings.TryGet (Key.A, out KeyBinding binding));
|
||||
Assert.Null (binding.Target);
|
||||
Assert.True (Application.KeyBindings.TryGet (Key.B, out binding));
|
||||
Assert.Null (binding.Target);
|
||||
}
|
||||
|
||||
|
||||
[Fact]
|
||||
[AutoInitShutdown]
|
||||
public void KeyBindings_Remove_Removes ()
|
||||
|
||||
Reference in New Issue
Block a user