private static void WndKeyPressed(object sender, Common.EventArgs.KeyPressedEventArgs e) { if (e.KeyInfo.Key == ConsoleKey.Escape) { (sender as Window)?.Close(); } }
private static void DialogFormKeyPressed(object sender, Common.EventArgs.KeyPressedEventArgs e) { if (e.KeyInfo.Key == ConsoleKey.LeftArrow) { var wnd = sender as Window; wnd?.InputAction(new ConsoleKeyInfo(default, ConsoleKey.Tab, true, false, false));