Combined KeyBinding classes

This commit is contained in:
Tig
2024-12-07 23:42:38 -08:00
parent 0b72db2785
commit 0f137579c8
11 changed files with 79 additions and 327 deletions

View File

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