Exposes APIs to support upcoming Web console feature (#1770)

* Implementations to allow a WebConsole feature

* Preventing application hanging on the RunLoop.

* Implementations to allow a WebConsole feature

* Preventing application hanging on the RunLoop.

* Making WantContinuousButtonPressedView public.

* Added TimeoutAdded event.

* Fixes unit test for WantContinuousButtonPressedView.

* Changes as requested resolved.

Co-authored-by: BDisp <bd.bdisp@gmail.com>
This commit is contained in:
Freddie Mercurial (Jessica M.)
2022-06-08 20:05:06 +00:00
committed by GitHub
parent 49207e6ce5
commit 68b40a93f1
8 changed files with 145 additions and 70 deletions

View File

@@ -947,7 +947,7 @@ namespace Terminal.Gui {
await Task.Delay (200);
while (isButtonPressed) {
await Task.Delay (100);
var view = Application.wantContinuousButtonPressedView;
var view = Application.WantContinuousButtonPressedView;
if (view == null) {
break;
}
@@ -1187,7 +1187,7 @@ namespace Terminal.Gui {
public NetWinVTConsole NetWinConsole { get; }
public bool IsWinPlatform { get; }
public override IClipboard Clipboard { get; }
internal override int [,,] Contents => contents;
public override int [,,] Contents => contents;
int largestWindowHeight;