mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 17:02:51 +08:00
parent
8c099a0038
commit
57a8e6ccc1
@ -47,6 +47,10 @@ namespace Spectre.Console
|
|||||||
{
|
{
|
||||||
ConsoleKey.UpArrow => _index - 1,
|
ConsoleKey.UpArrow => _index - 1,
|
||||||
ConsoleKey.DownArrow => _index + 1,
|
ConsoleKey.DownArrow => _index + 1,
|
||||||
|
ConsoleKey.Home => 0,
|
||||||
|
ConsoleKey.End => _choices.Count - 1,
|
||||||
|
ConsoleKey.PageUp => _index - CalculatePageSize(_requestedPageSize),
|
||||||
|
ConsoleKey.PageDown => _index + CalculatePageSize(_requestedPageSize),
|
||||||
_ => _index,
|
_ => _index,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user