Forráskód Böngészése

Set _forceRead as true before set _waitForProbe.

BDisp 9 hónapja
szülő
commit
9749142610
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

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

@@ -1191,10 +1191,10 @@ internal class WindowsDriver : ConsoleDriver
 
         while (Console.KeyAvailable)
         {
+            _mainLoopDriver._forceRead = true;
+
             _mainLoopDriver._waitForProbe.Set ();
             _mainLoopDriver._waitForProbe.Reset ();
-
-            _mainLoopDriver._forceRead = true;
         }
 
         _mainLoopDriver._forceRead = false;