Blender is not a preset it is only what Blender has become.
If you make a custom keyconfig and call it "Swap MMB" and change keyconfig that is what Blender and Blender 2 7 X and others are now.
In order to change everything back to default you have to make a new entry and call it something else. EG "Default" change all of keyconfig back ...
I now understand I've been overthinking this while the solution is simply to set spacebar for panning both in 2D view and 3D view.
For some reason I thought in the 3D view/pan view window I needed to set mouse movement, then spacebar as a modifier and then in the view3D Move Modal section in the bottom also set confirm: spacebar: release to make it work the ...
What i really need is bpy.Types.event, unfortunately, it is only accessible from an Operator invoke() or modal()
so here's the trick
_event = None
bl_idname = "scatter5.get_event"
bl_label = ""
def invoke(self, context, event):
_event = event
Further more, if anyone is interested in toggling between WIRE and SOLID display type you can use wm.context_toggle_enum instead of wm.context_menu_enum, which then lets you provide the two toggle values. (or pick any two from the available types: TEXTURED, SOLID, WIRE, BOUNDS you want to toggle between).
First they use a Node Wrangler shortcut. They're doing a Shift + RMB and drawing a line over the two noodles coming out of the Value node.
This command combines the two noodles into a Reroute node that splits out to its two destinations.
Then they delete the Value node and bring a new input over from the Group Input. Essentially they've recreated the ...
Keymap sets a toggle.
The operator has two properties, mode and toggle
Sets the object interaction mode
Mesh object active
The TAB Shortcut The toggle property is set to True.
which correlates to