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