mirror of
https://github.com/fiso64/slsk-batchdl.git
synced 2024-12-22 14:32:40 +00:00
fix interactive control char bug
This commit is contained in:
parent
4489d08761
commit
4886744a67
1 changed files with 3 additions and 1 deletions
|
@ -847,6 +847,8 @@ static partial class Program
|
||||||
return "s";
|
return "s";
|
||||||
else if (key.Key == ConsoleKey.Enter)
|
else if (key.Key == ConsoleKey.Enter)
|
||||||
return userInput;
|
return userInput;
|
||||||
|
else if (char.IsControl(key.KeyChar))
|
||||||
|
continue;
|
||||||
else
|
else
|
||||||
userInput += key.KeyChar;
|
userInput += key.KeyChar;
|
||||||
}
|
}
|
||||||
|
@ -871,7 +873,7 @@ static partial class Program
|
||||||
PrintAlbum(tracks);
|
PrintAlbum(tracks);
|
||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
|
|
||||||
Loop:
|
Loop:
|
||||||
string userInput = interactiveModeLoop().Trim().ToLower();
|
string userInput = interactiveModeLoop().Trim().ToLower();
|
||||||
switch (userInput)
|
switch (userInput)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue