Moved Toplevel keybindings out of Toplevel to Application.

Still need to move navigation code out of Toplevel
This commit is contained in:
Tig
2024-07-24 12:28:30 -06:00
parent feaf5c0f6c
commit c03dd32031
36 changed files with 1035 additions and 870 deletions

View File

@@ -108,21 +108,21 @@ public class AllViewsTests (ITestOutputHelper output) : TestsAllViews
if (vType is TextView)
{
top.NewKeyDownEvent (Key.Tab.WithCtrl);
Application.OnKeyDown (Key.Tab.WithCtrl);
}
else if (vType is DatePicker)
{
for (var i = 0; i < 4; i++)
{
top.NewKeyDownEvent (Key.Tab.WithCtrl);
Application.OnKeyDown (Key.Tab.WithCtrl);
}
}
else
{
top.NewKeyDownEvent (Key.Tab);
Application.OnKeyDown (Key.Tab);
}
top.NewKeyDownEvent (Key.Tab);
Application.OnKeyDown (Key.Tab);
Assert.Equal (2, vTypeEnter);
Assert.Equal (1, vTypeLeave);