I am trying to add new shortcuts using the shortcuts manager. The problem is that I want to bind them to WASD, without any additional qualifiers, which are already taken and thus results in conflicts. I want to add shortcuts for the axis selectors in the top left corner of Scene View. However, I want those shortcuts to only work when I am panning the view with my middle mouse button (then WASD keys would rotate the view).
ShortcutAttribute takes “Type context” as its second parameter, but I can’t find what type to use. The closest I found was UnityEditor.CameraFlyModeContext, which is the context for camera fly mode, but that class is internal and I can’t access it.
How would I go about creating those shortcuts?