PowerArgs.Cli.Grid.FilterTextKeyPressed C# (CSharp) Method

FilterTextKeyPressed() private method

private FilterTextKeyPressed ( ConsoleKeyInfo keyInfo ) : void
keyInfo System.ConsoleKeyInfo
return void
        private void FilterTextKeyPressed(ConsoleKeyInfo keyInfo)
        {
            if (keyInfo.Key == ConsoleKey.Enter)
            {
                Activate();
            }
            else if (keyInfo.Key == ConsoleKey.DownArrow)
            {
                this.TryFocus();
            }
            else if (keyInfo.Key == ConsoleKey.PageDown)
            {
                this.TryFocus();
            }
            else if (keyInfo.Key == ConsoleKey.PageUp)
            {
                this.TryFocus();
            }
        }