Closed Ynjxsjmh closed 2 years ago
Thank you for your report.
In your second example, you do not seem to have a listener for on_release
. A hot key will only trigger when it transitions into the state all keys pressed, and when you never tell it that keys are released, it will remain in the triggered state.
In Monitoring the keyboard it introduces two ways to use
pynput.keyboard.Listener
:In Global hotkeys, there is only one way to use
pynput.keyboard.Listener.canonical
:It can capture as many hotkey press as I try. However, when I try to use the following non-blocking fashion,
It only captures the first hotkey press, what's wrong here