Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard input doesn't work in UnitMainLoop when Idle function is registered #2265

Closed
AaronLieberman opened this issue Jan 2, 2023 · 0 comments · Fixed by #2266
Closed

Comments

@AaronLieberman
Copy link
Contributor

Describe the bug
Keyboard input doesn't work in UnitMainLoop when Idle function is registered.

To Reproduce
Run this application on Linux:

using Terminal.Gui;

Application.Init();
Application.Top.Add(new TextField { Width = 30, Height = 1 });

// comment out this line and it works on Linux (but no idle function, of course)
Application.MainLoop.AddIdle(() => true);

Application.Run();
Application.Shutdown();

Expected behavior
Text field is editable. Ctrl+Q quits app. If you comment out the AddIdle line

Desktop (please complete the following information):

  • This same code runs fine on Windows 11 native
  • It doesn't work on Linux. Tested on native Ubuntu 20.04 and Windows 11 WSL2 Ubuntu 20.04.
@tig tig closed this as completed in #2266 Jan 3, 2023
tig added a commit that referenced this issue Jan 3, 2023
Fixes #2265 - Keyboard input doesn't work in UnixMainLoop when Idle function is registered
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants