Keyboard python module: Supress = True/False, what’s the point?

Asked

Viewed 16 times

0

Hello I was testing the module "Keyboard" in python and I did not find a good explanation nor in the module documentation about a parameter (if I am wrong correct me) called "Supress" in some functions of the program, for example:

add_hotkey(hotkey, callback, args=(), Suppress=False, timeout=1, trigger_on_release=False)

"suppress defines if Successful triggers should block the Keys from being sent to other Programs." - This is the explanation that program HELP gives.

But in practice, what does that mean? I figured it was to prevent commands from being read outside the terminal but it doesn’t seem that this is the case.

  • 1

    Yeah, that’s right. With the suppress=True the read command will not be propagated to other programs. Why does it state that it does not appear to be that?

  • Because when I tested this the command could still write outside the python terminal. (In this case, with a write command, obviously)

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.