PowerArgs.Cli.Button.OnKeyInputReceived C# (CSharp) 메소드

OnKeyInputReceived() 개인적인 메소드

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