예제 #1
0
 public static bool DdcOpen(this IKeyEventArgs e, IDDControl ddc) =>
 !e.ShiftOrCtrl() && e.Up() && !ddc.DroppedDown &&
 (e.Enter() && e.KeyCode == Key.Tab ||
  e.Alt && e.KeyCode == Key.Down);
예제 #2
0
 public static bool DdcClose(this IKeyEventArgs e, IDDControl ddc) =>
 !e.ShiftOrCtrl() && e.Up() && ddc.DroppedDown &&
 (!e.Alt && e.KeyCode == Key.Escape ||
  e.Alt && e.KeyCode == Key.Up ||
  e.KeyCode == Key.Tab);
예제 #3
0
 public static bool IsClicked(this IKeyEventArgs e) =>
 !e.AltOrCtrlOrShift() && e.Up() && (e.KeyCode == Key.Return || e.KeyCode == Key.Enter);
예제 #4
0
 public static bool OpenContextMenu(this IKeyEventArgs e) =>
 !e.AltOrCtrl() && e.Up() && ((e.IsShift() && e.KeyCode == Key.F10) ||
                              (!e.IsShift() && e.KeyCode == Key.Menu));
예제 #5
0
 public static bool MoveFocus(this IKeyEventArgs e) =>
 !e.AltOrCtrl() && e.Up() && e.KeyCode == Key.Tab;