Skip to content

unhandled keyboard sabotaging (urgent) #145

@adamgulde

Description

@adamgulde

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions