Is there any way to detect/hijack(consume) Ctrl-A, Ctrl-1, Ctrl-2 and so on in an Editor extension? It appears that Unity is consuming these before they get to my OnGUI (I can detect Ctrl, I can detect A, but not when both are pressed).
To detect Ctrl-A, this works:
if (Event.current.type == EventType.ValidateCommand
&& Event.current.commandName == "SelectAll"){
DoSelectAll();
Event.current.Use();
}
Unfortunately it doesn’t seem to work for Ctrl-1, Ctrl-2.