- optionally block propagation of keyboard events
- python block key events
- python listen to keyboards and stop the event message
Code talk first
set suppress=True will swallow. ALL keypresses
When use pynput to capture keyboard input like this:
the terminal will auto echo the key info, even special echo for up/down , such as:
$ python3 key_listener.py
Now the world is slient and clean.
but if you forget to exit the app, other apps will never get a valid key input forever.