소스 검색

Add in additional chance to release such that Esc isn't blocked awaiting release e.g. onto mouse moves

tznind 8 달 전
부모
커밋
b0e921a512
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsMainLoop.cs

+ 5 - 0
Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsMainLoop.cs

@@ -112,6 +112,11 @@ internal class WindowsMainLoop : IMainLoopDriver
 
     void IMainLoopDriver.Iteration ()
     {
+        foreach (var i in ((WindowsDriver)_consoleDriver).ShouldRelease ())
+        {
+            ((WindowsDriver)_consoleDriver).ProcessInputAfterParsing (i);
+        }
+
         while (!ConsoleDriver.RunningUnitTests && _resultQueue.TryDequeue (out WindowsConsole.InputRecord inputRecords))
         {
             ((WindowsDriver)_consoleDriver).ProcessInput (inputRecords);