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

make Listener.canonical a staticmethod, this make the call from callabacks easier. #520

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

paolopas
Copy link

@paolopas paolopas commented Dec 1, 2022

I have added the script tools/keyboard-mixin-test.py as a proof of the concept.
Tested with Linux (xorg).
But I was unable to run the tests, sorry.

this make the call from callabacks easier.
@paolopas
Copy link
Author

paolopas commented Dec 2, 2022

One last thing I suggest is to uniform the on_activate callback of HotKey to the same protocol of other events callback (i.e. on_press and on_release).
That is a return False into an on_activate should stop the listener too (currently a StopException is needed).
To achieve this a minor HotKey.press modification should suffice.

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