python add a hotkey but stop the keypresses from passing through to other apps
Let’s say I want a python program to bind to Shift+f. If you open up notepad and in there press Shift+f, then a capital F will appear. This means notepad received the keypresses. If you instead press win+f, for example, then an ‘f’ will not appear, because windows binded it to do something else.