Skip to content

Conversation

zander37
Copy link

@zander37 zander37 commented Oct 3, 2025

Replaced keyboard module input methods with readchar library in the codebase when necessary. The readchar library solves the issues of global hooks as it only reads characters from stdin. It is Windows and Linux supported. More info here: https://github.com/magmax/python-readchar

Mostly all keyboard module usage was replaced, except for instances of simulating keystrokes, as readchar does not support keystroke simulation.

Usage of python's input() was kept, as it doesn't cause global hooks, as it reads from stdin like readchar, but reads the whole line.

For Issue: unhandled keyboard sabotaging (urgent) #145

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

Successfully merging this pull request may close these issues.

1 participant