Beispiel #1
0
 public virtual bool Update(ConsoleController.KeyEvent keypress, bool hasKeypress = true)
 {
     if (keypress.ValidEvent && keypress.Event.Key == ConsoleKey.Escape)
     {
         OnDestroy();
     }
     return(controller.Dirty);
 }
Beispiel #2
0
 public bool Update(ConsoleController.KeyEvent keypress, bool hasKeypress = true)
 => Current?.Update(keypress, hasKeypress) == true;