mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 17:57:57 +01:00
Rename method for clarity
This commit is contained in:
@@ -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<ConsoleKeyInfo> ShouldRelease ()
|
||||
public IEnumerable<ConsoleKeyInfo> ShouldReleaseParserHeldKeys ()
|
||||
{
|
||||
if (Parser.State == AnsiResponseParserState.ExpectingBracket &&
|
||||
DateTime.Now - Parser.StateChangedAt > _consoleDriver.EscTimeout)
|
||||
|
||||
@@ -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<WindowsConsole.InputRecord> ShouldRelease ()
|
||||
public IEnumerable<WindowsConsole.InputRecord> ShouldReleaseParserHeldKeys ()
|
||||
{
|
||||
if (_parser.State == AnsiResponseParserState.ExpectingBracket &&
|
||||
DateTime.Now - _parser.StateChangedAt > EscTimeout)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user