-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
Problem: keyboard module hooks the entire keyboard until “esc” is pressed. This includes global events outside of the command prompt, so if a certain Module using keyboard isn’t closed properly, we potentially sabotage the user’s computer. This is bad.
Proposed solution: find a different way to get input without using the input() function and without using keyboard module. This may actually be easier on Linus than Windows: see https://stackoverflow.com/questions/64035952/how-to-key-press-detection-on-a-linux-terminal-low-level-style-in-python
Maybe it's O.K. to use keyboard on windows, but the program will need to automatically unhook when the command prompt goes out of focus and rehook when it returns in focus.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels