mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 08:50:25 +01:00
Add in additional chance to release such that Esc isn't blocked awaiting release e.g. onto mouse moves
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user