Detect Ctrl + S in Console
问题 I'm developing a console application in which I need to detect several hotkeys such as Ctrl + N , Ctrl + O and Ctrl + S . Here's a part of the code that I use to recognize these hotkeys: ConsoleKeyInfo input = Console.ReadKey(true); if (input.Modifiers == ConsoleModifiers.Control) { if (input.Key == ConsoleKey.N) { // ... } else if (input.Key == ConsoleKey.O) { // ... } else if (input.Key == ConsoleKey.S) { //... } } The code above works without any issues for Ctrl + N and Ctrl + O . But, I