1
0
Fork 0
mirror of https://github.com/fiso64/slsk-batchdl.git synced 2024-12-22 06:22:41 +00:00

fix interactive control char bug

This commit is contained in:
fiso64 2024-09-21 12:18:27 +02:00
parent 4489d08761
commit 4886744a67

View file

@ -847,6 +847,8 @@ static partial class Program
return "s";
else if (key.Key == ConsoleKey.Enter)
return userInput;
else if (char.IsControl(key.KeyChar))
continue;
else
userInput += key.KeyChar;
}