mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixes #2904. v2 InvokeKeybindings called twice when running in Dialog.
This commit is contained in:
@@ -627,7 +627,7 @@ internal class CursesDriver : ConsoleDriver {
|
||||
return true;
|
||||
});
|
||||
|
||||
_mainLoop.WinChanged += ProcessInput;
|
||||
_mainLoop.WinChanged = ProcessInput;
|
||||
}
|
||||
|
||||
public override void Init (Action terminalResized)
|
||||
|
||||
@@ -861,9 +861,9 @@ internal class WindowsDriver : ConsoleDriver {
|
||||
_mouseHandler = mouseHandler;
|
||||
|
||||
_mainLoop = mainLoop.MainLoopDriver as WindowsMainLoop;
|
||||
_mainLoop.ProcessInput += ProcessInput;
|
||||
_mainLoop.ProcessInput = ProcessInput;
|
||||
#if HACK_CHECK_WINCHANGED
|
||||
_mainLoop.WinChanged += ChangeWin;
|
||||
_mainLoop.WinChanged = ChangeWin;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user