Skip to content

listen to keyboard from an async loop#667

Open
Ziryc wants to merge 2 commits intomoses-palmer:masterfrom
Ziryc:async-keyboard
Open

listen to keyboard from an async loop#667
Ziryc wants to merge 2 commits intomoses-palmer:masterfrom
Ziryc:async-keyboard

Conversation

@Ziryc
Copy link
Copy Markdown

@Ziryc Ziryc commented Dec 9, 2025

Currently the on_press is processed in the listener thread.
It makes it hard to use with async apps.
Some packages (like ib_insync) that uses async loops are unable to run well under these restriction.

I Added an AsyncListener class, to be able to run the listener and transmit the calls from the listener thread to the event loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant