From 4886744a675cf2901a7203d6cf211c2427bf2593 Mon Sep 17 00:00:00 2001 From: fiso64 Date: Sat, 21 Sep 2024 12:18:27 +0200 Subject: [PATCH] fix interactive control char bug --- slsk-batchdl/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slsk-batchdl/Program.cs b/slsk-batchdl/Program.cs index 0e31666..7b3c9ce 100644 --- a/slsk-batchdl/Program.cs +++ b/slsk-batchdl/Program.cs @@ -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; } @@ -871,7 +873,7 @@ static partial class Program PrintAlbum(tracks); Console.WriteLine(); - Loop: + Loop: string userInput = interactiveModeLoop().Trim().ToLower(); switch (userInput) {