diff --git a/src/PowerShellEditorServices/Services/PowerShellContext/Console/ConsoleProxy.cs b/src/PowerShellEditorServices/Services/PowerShellContext/Console/ConsoleProxy.cs index 4c2f92015..a6e056b82 100644 --- a/src/PowerShellEditorServices/Services/PowerShellContext/Console/ConsoleProxy.cs +++ b/src/PowerShellEditorServices/Services/PowerShellContext/Console/ConsoleProxy.cs @@ -188,7 +188,12 @@ internal static ConsoleKeyInfo SafeReadKey(bool intercept, CancellationToken can } catch (OperationCanceledException) { - return default(ConsoleKeyInfo); + return new ConsoleKeyInfo( + keyChar: ' ', + ConsoleKey.DownArrow, + shift: false, + alt: false, + control: false); } } }