Skip to content
Discussion options

You must be logged in to vote

Key pressing in the menu completion context doesn't go through the key-binding handling.
While in the menu completion, it reads key directly through Console.ReadKey(), and then acts based on the key.

var nextKey = ReadKey();
if (nextKey == Keys.RightArrow) { menu.MoveRight(); }
else if (nextKey == Keys.LeftArrow) { menu.MoveLeft(); }
else if (nextKey == Keys.DownArrow) { menu.MoveDown(); }
else if (nextKey == Keys.UpArrow) { menu.MoveUp(); }
else if (nextKey == Keys.PageDown) { menu.MovePageDown(); }
else if (nextKey == Keys.PageUp) { menu.MovePageUp(); }
else if (nextKey == Keys.T…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matteocoder
Comment options

Answer selected by matteocoder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants