Keymap: Use Z to toggle wire instead of xray

This now works like 2.7x more or less exactly,
x-ray is enabled by default for wire so unless users change this,
it will enable x-ray too.
This commit is contained in:
Campbell Barton 2018-11-22 09:01:00 +11:00
parent d52c41b040
commit 7e50813d58
1 changed files with 2 additions and 1 deletions

View File

@ -1020,7 +1020,8 @@ def km_view3d(params):
op_menu_pie("VIEW3D_MT_pivot_pie", {"type": 'PERIOD', "value": 'PRESS'}),
op_menu_pie("VIEW3D_MT_orientations_pie", {"type": 'COMMA', "value": 'PRESS'}),
op_menu_pie("VIEW3D_MT_shading_pie", {"type": 'D', "value": 'PRESS'}),
("view3d.toggle_xray", {"type": 'Z', "value": 'PRESS'}, None),
("wm.context_toggle_enum", {"type": 'Z', "value": 'PRESS'},
{"properties": [("data_path", 'space_data.shading.type'), ("value_1", 'WIREFRAME'), ("value_2", 'SOLID')]}),
("view3d.toggle_shading", {"type": 'Z', "value": 'PRESS', "alt": True},
{"properties": [("type", 'MATERIAL')]}),
("view3d.toggle_shading", {"type": 'Z', "value": 'PRESS', "shift": True},