PowerArgs.Cli.Button.OnKeyInputReceived C# (CSharp) Method

OnKeyInputReceived() private method

private OnKeyInputReceived ( ConsoleKeyInfo info ) : void
info System.ConsoleKeyInfo
return void
        private void OnKeyInputReceived(ConsoleKeyInfo info)
        {
            if(info.Key == ConsoleKey.Enter || info.Key == ConsoleKey.Spacebar)
            {
                Click();
            }
        }