You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately I no longer have access to a macOS system, so I cannot test this, but reading through the code here reveals a possible cause; the modifier keys do not emit proper keyboard events, but only flag changed events, and this library uses heuristics to determine whether a key has been pressed or released. shift and ctrl should exhibit the same behaviour.
I am uncertain about how to proceed, as I have trouble finding any reasonable way to determine the pressed state.
Description
Platform and pynput version
To Reproduce
Keep the left command pressed, and press the right command and release it, then release the left command:
As you can see, two "Key.cmd_r pressed" events were emitted instead of a press and a release.
The text was updated successfully, but these errors were encountered: