What I mean by global hotkeys is ones that get triggered no matter which window/layout/panel/editor of maya you are in at the moment. And by editor specific I mean ones that get triggered only inside of that editor. For example, how would you approach creating a hotkey that only runs when in the Script Editor?
I've been trying to figure out a way of doing this with just native Maya, but I haven't had any luck. The way I've done it for the few cases I've had to was using PySide, which definitely works, but it feels hacky as we are entirely hijacking the input.
An example of what I've used it for is Clear history when inside the Script Editor. I've bound it to Ctrl + H, while still maintaining the Hide functionality everywhere else.
Have you done this before and if so how did you approach it? I am really curious.