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

'right alt' and 'left alt' parsable hotkeys behaves the same as the 'alt' parsable hotkey on Windows #633

Open
FredKhayat opened this issue Feb 16, 2024 · 0 comments

Comments

@FredKhayat
Copy link

FredKhayat commented Feb 16, 2024

while True:
        keyboard.add_hotkey('right alt', lambda: print("Right Alt pressed"))
        keyboard.wait()

When running the above code snippet, the callback function is executed regardless of which alt (right or left) was pressed.
The expected behavior is to execute the callback function only when the right alt is pressed, and to ignore left alt key presses.

Similar to issue #617

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

No branches or pull requests

1 participant