diff --git a/Terminal.Gui/ConsoleDrivers/NetDriver/NetEvents.cs b/Terminal.Gui/ConsoleDrivers/NetDriver/NetEvents.cs index 05af19e90..391eb5196 100644 --- a/Terminal.Gui/ConsoleDrivers/NetDriver/NetEvents.cs +++ b/Terminal.Gui/ConsoleDrivers/NetDriver/NetEvents.cs @@ -78,7 +78,7 @@ internal class NetEvents : IDisposable { Task.Delay (100, _netEventsDisposed.Token).Wait (_netEventsDisposed.Token); - foreach (var k in ShouldRelease ()) + foreach (var k in ShouldReleaseParserHeldKeys ()) { ProcessMapConsoleKeyInfo (k); } @@ -94,7 +94,7 @@ internal class NetEvents : IDisposable return default (ConsoleKeyInfo); } - public IEnumerable ShouldRelease () + public IEnumerable ShouldReleaseParserHeldKeys () { if (Parser.State == AnsiResponseParserState.ExpectingBracket && DateTime.Now - Parser.StateChangedAt > _consoleDriver.EscTimeout) diff --git a/Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsDriver.cs b/Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsDriver.cs index 28b776dad..58ca75965 100644 --- a/Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsDriver.cs +++ b/Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsDriver.cs @@ -590,7 +590,7 @@ internal class WindowsDriver : ConsoleDriver yield break; } - foreach (var i in ShouldRelease ()) + foreach (var i in ShouldReleaseParserHeldKeys ()) { yield return i; } @@ -602,7 +602,7 @@ internal class WindowsDriver : ConsoleDriver } } - public IEnumerable ShouldRelease () + public IEnumerable ShouldReleaseParserHeldKeys () { if (_parser.State == AnsiResponseParserState.ExpectingBracket && DateTime.Now - _parser.StateChangedAt > EscTimeout) diff --git a/Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsMainLoop.cs b/Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsMainLoop.cs index 060a2d020..fedcf6f73 100644 --- a/Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsMainLoop.cs +++ b/Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsMainLoop.cs @@ -112,7 +112,7 @@ internal class WindowsMainLoop : IMainLoopDriver void IMainLoopDriver.Iteration () { - foreach (var i in ((WindowsDriver)_consoleDriver).ShouldRelease ()) + foreach (var i in ((WindowsDriver)_consoleDriver).ShouldReleaseParserHeldKeys ()) { ((WindowsDriver)_consoleDriver).ProcessInputAfterParsing (i); }