Преглед на файлове

Cherry picked new Mouse Scenario

Tig преди 1 година
родител
ревизия
d9658efc65
променени са 2 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 3 0
      Terminal.Gui/ConsoleDrivers/WindowsDriver.cs
  2. 1 0
      UICatalog/Scenarios/Mouse.cs

+ 3 - 0
Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

@@ -2128,6 +2128,9 @@ internal class WindowsMainLoop : IMainLoopDriver
 
     void IMainLoopDriver.TearDown ()
     {
+        // Eat any outstanding events
+        //var r = _winConsole.ReadConsoleInput ();
+
         _inputHandlerTokenSource?.Cancel ();
         _inputHandlerTokenSource?.Dispose ();
 

+ 1 - 0
UICatalog/Scenarios/Mouse.cs

@@ -9,6 +9,7 @@ public class Mouse : Scenario
 {
     public override void Main ()
     {
+        Application.Init ();
         Window win = new ()
         {
             Title = $"{Application.QuitKey} to Quit - Scenario: {GetName ()}",