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