Просмотр исходного кода

Avoids exit after read the response with empty key.

BDisp 10 месяцев назад
Родитель
Сommit
ce0183fea5
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsConsole.cs

+ 2 - 0
Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsConsole.cs

@@ -123,6 +123,8 @@ internal class WindowsConsole
                                         seqReqStatus.AnsiRequest.RaiseResponseFromInput (ansiSequence.ToString ());
                                         // Clear the terminator for not be enqueued
                                         inputRecord = default (InputRecord);
+                                        // Clear numberEventsRead to not exit
+                                        numberEventsRead = 0;
                                         // Clear the ansiSequence to avoid insert another Esc character
                                         ansiSequence.Clear ();
                                     }