How to override CTRL + Y in python script?

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').

+4
source share

Source: https://habr.com/ru/post/1612123/


All Articles