protected override void OnKeyPressed(ConsoleKeyInfo pressedKey) { if (pressedKey.IsKeyUp()) { DecrementIndex(); } if (pressedKey.IsKeyDown()) { IncrementIndex(); } if (pressedKey.IsKeyLeft()) { OnKeyLeft(); } if (pressedKey.IsKeyRight()) { OnKeyRight(); } if (pressedKey.IsEnter()) { InstallSelectedVersion(); } }
protected override void OnKeyPressed(ConsoleKeyInfo pressedKey) { if (pressedKey.IsKeyUp()) { DecrementIndex(); } if (pressedKey.IsKeyDown()) { IncrementIndex(); } if (pressedKey.IsKeyRight()) { Context.ChangeState(new DefinedConfigExpanded(SelectedIndex)); } if (pressedKey.IsEnter()) { ChangeConfig(); } }