-
Notifications
You must be signed in to change notification settings - Fork 2
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
Pynput doesnt release ctrl after hotkey is activated #9
Comments
I have no idea how to fix this |
So hotkeys will probably become an experimental feature once the settings window is implemented |
Just wondering, why do you use |
@rdbende do they support multiple keys? And if yes pls tell me how i use them |
Yes! Events and binds are absolutely one of the most powerful features of Tkinter. For a multi-key binding you can simply use a hypen But the code above wouldn't really work, as you have to bind every single widget in the app to make it global. Instead you can use the However, there's still a more elegant approach. You can use the root.event_add("<<Open>>", "<Control-o>")
root.bind("<<Open>>", handler) |
Thank you sooooo much!! ❤️ |
Yeah. Tkinter bindings are super easy to use and make life much easier |
Which results in the function getting executed everytime the key gets pressed without ctrl after the hotkey has been activated once
The text was updated successfully, but these errors were encountered: