I want to implement Ctrl+Y as a hotkey in my python script, however, Ctrl+Y will cause a signal to be sent to my script, causing it to stop.
How can I override the Ctrl+Y key combination within the python script?
I have tried:
import signal
signal.signal(signal.SIGSTOP, signal.SIG_IGN)
but this will cause RunTimeError (22, 'invalid argument')
.