PowerArgs.Cli.ArrowKeysHandler.Handle C# (CSharp) Method

Handle() public method

public Handle ( RichCommandLineContext context ) : void
context RichCommandLineContext
return void
        public void Handle(RichCommandLineContext context)
        {
            if(context.KeyPressed.Key == ConsoleKey.UpArrow)
            {
                HandleUpArrow(context);
            }
            else if(context.KeyPressed.Key == ConsoleKey.DownArrow)
            {
                HandleDownArrow(context);
            }
            else if(context.KeyPressed.Key == ConsoleKey.LeftArrow)
            {
                HandleLeftArrow(context);
            }
            else if(context.KeyPressed.Key == ConsoleKey.RightArrow)
            {
                HandleRightArrow(context);
            }
        }