Example #1
0
 public static bool MoveFocus(this IKeyEventArgs e) =>
 !e.AltOrCtrl() && e.Up() && e.KeyCode == Key.Tab;
Example #2
0
 public static bool OpenContextMenu(this IKeyEventArgs e) =>
 !e.AltOrCtrl() && e.Up() && ((e.IsShift() && e.KeyCode == Key.F10) ||
                              (!e.IsShift() && e.KeyCode == Key.Menu));
Example #3
0
 public static bool AppClick(this IKeyEventArgs e) =>
 !e.AltOrCtrl() && (e.KeyCode == Key.Tab || e.KeyCode == Key.Escape) || e.OpenContextMenu();