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

Returns upper and lower cases on Windows but only lower cases on Linux #638

Open
TheConceptBoy opened this issue Mar 10, 2024 · 0 comments

Comments

@TheConceptBoy
Copy link

I used the library to get keyboard inputs into my application and I found a strange ill regularity. When testing on Windows, the print result shows capital or lower case letters based on whether or not I'm holding down the shift key. However when testing on Debian linux, it seems to only report lower cases regardless if I am holding down shift or not. As the matter of fact this also affects punctuation symbols, special characters and brackets. Shift 5 still shows up as 5 Is this something that's unavoidable or is there something I'm missing ?

import keyboard

while True:
    event = keyboard.read_event()
    if event.event_type == keyboard.KEY_DOWN:
        print(dir(event))
        print('key pressed', event.name)
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