瀏覽代碼

Avoids exit after read the response with empty key.

BDisp 10 月之前
父節點
當前提交
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 ();
                                     }