I want to implement CTRL + Y as a hotkey in my python script, however ctrl + Y will send a signal to my script, as a result of which it will be stopped.
How can I override CTRL + Y key combination in python script?
I tried:
import signal
signal.signal(signal.SIGSTOP, signal.SIG_IGN)
but it will cause RunTimeError (22, 'invalid argument')
.
source
share