public void HandleKeyPressed(ConsoleKeyInfo pressedKey) { if (pressedKey.IsEscape()) { Environment.Exit(0); } OnKeyPressed(pressedKey); }
public void HandleKeyPressed(ConsoleKeyInfo pressedKey) { if (pressedKey.IsEscape()) { Environment.Exit(0); } _context.InfoMessage.Clear(); OnKeyPressed(pressedKey); }