Allow PACKET key on MultiSelectionPrompt

This commit is contained in:
nilaoda
2022-10-13 22:46:07 +08:00
committed by Patrik Svensson
parent f6a7c96413
commit 8fa53f8fb1
2 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ public sealed class MultiSelectionPrompt<T> : IPrompt<List<T>>, IListPromptStrat
return ListPromptInputResult.Submit;
}
if (key.Key == ConsoleKey.Spacebar)
if (key.Key == ConsoleKey.Spacebar || key.Key == ConsoleKey.Packet)
{
var current = state.Items[state.Index];
var select = !current.IsSelected;