UNSOLVED Get the Panel Type Under Cursor?


Is there a way of getting the panel type under cursor?

My use case is to have a different commands pop up in my plug-in depending on where the cursor is under.

For example, if its on the viewport, create primitive objects
if its on the object manager, create light objects.

I know the example is crude but something like that.


it is not possible, even if the shortcut can be assigned by managers, the integration of that function is too deep and there are too many non-public classes.

You can still define different shortcut for different manager. Or you can define key modifier that will change the behavior of your plugin.