Cleanup: key-map indentation
This commit is contained in:
@@ -362,15 +362,15 @@ def _template_items_transform_actions(
|
||||
("transform.translate", {"type": params.select_mouse, "value": 'CLICK_DRAG'}, None),
|
||||
op_tool_optional(
|
||||
("transform.translate", {"type": 'G', "value": 'PRESS'},
|
||||
{"properties": [("alt_navigation", params.use_alt_navigation)]}),
|
||||
{"properties": [("alt_navigation", params.use_alt_navigation)]}),
|
||||
(op_tool_cycle, "builtin.move"), params),
|
||||
op_tool_optional(
|
||||
("transform.rotate", {"type": 'R', "value": 'PRESS'},
|
||||
{"properties": [("alt_navigation", params.use_alt_navigation)]}),
|
||||
{"properties": [("alt_navigation", params.use_alt_navigation)]}),
|
||||
(op_tool_cycle, "builtin.rotate"), params),
|
||||
op_tool_optional(
|
||||
("transform.resize", {"type": 'S', "value": 'PRESS'},
|
||||
{"properties": [("alt_navigation", params.use_alt_navigation)]}),
|
||||
{"properties": [("alt_navigation", params.use_alt_navigation)]}),
|
||||
(op_tool_cycle, "builtin.scale"), params),
|
||||
]
|
||||
|
||||
@@ -2120,8 +2120,11 @@ def km_node_editor(params):
|
||||
)
|
||||
|
||||
if not params.legacy:
|
||||
items.extend(_template_node_select(type=params.select_mouse,
|
||||
value=params.select_mouse_value, select_passthrough=True))
|
||||
items.extend(_template_node_select(
|
||||
type=params.select_mouse,
|
||||
value=params.select_mouse_value,
|
||||
select_passthrough=True,
|
||||
))
|
||||
# Allow node selection with both for RMB select.
|
||||
if params.select_mouse == 'RIGHTMOUSE':
|
||||
items.extend(_template_node_select(type='LEFTMOUSE', value='PRESS', select_passthrough=True))
|
||||
@@ -2131,9 +2134,15 @@ def km_node_editor(params):
|
||||
])
|
||||
else:
|
||||
items.extend(_template_node_select(
|
||||
type='RIGHTMOUSE', value=params.select_mouse_value, select_passthrough=True))
|
||||
type='RIGHTMOUSE',
|
||||
value=params.select_mouse_value,
|
||||
select_passthrough=True,
|
||||
))
|
||||
items.extend(_template_node_select(
|
||||
type='LEFTMOUSE', value='PRESS', select_passthrough=True))
|
||||
type='LEFTMOUSE',
|
||||
value='PRESS',
|
||||
select_passthrough=True,
|
||||
))
|
||||
|
||||
items.extend([
|
||||
("node.select_box", {"type": params.select_mouse, "value": 'CLICK_DRAG'},
|
||||
@@ -4046,8 +4055,10 @@ def km_grease_pencil_stroke_sculpt_mode(params):
|
||||
# Context menu
|
||||
*_template_items_context_panel("VIEW3D_PT_gpencil_sculpt_context_menu", params.context_menu_event),
|
||||
# Auto-masking Pie menu.
|
||||
op_menu_pie("VIEW3D_MT_sculpt_gpencil_automasking_pie", {
|
||||
"type": 'A', "shift": True, "alt": True, "value": 'PRESS'}),
|
||||
op_menu_pie(
|
||||
"VIEW3D_MT_sculpt_gpencil_automasking_pie",
|
||||
{"type": 'A', "shift": True, "alt": True, "value": 'PRESS'},
|
||||
),
|
||||
])
|
||||
|
||||
return keymap
|
||||
@@ -7889,8 +7900,8 @@ def km_3d_view_tool_paint_gpencil_line(params):
|
||||
("gpencil.primitive_line", {"type": 'LEFTMOUSE', "value": 'PRESS', "alt": True},
|
||||
{"properties": [("wait_for_input", False)]}),
|
||||
# Lasso select
|
||||
("gpencil.select_lasso", {"type": params.action_mouse,
|
||||
"value": 'CLICK_DRAG', "ctrl": True, "alt": True}, None),
|
||||
("gpencil.select_lasso",
|
||||
{"type": params.action_mouse, "value": 'CLICK_DRAG', "ctrl": True, "alt": True}, None),
|
||||
]},
|
||||
)
|
||||
|
||||
@@ -7905,8 +7916,8 @@ def km_3d_view_tool_paint_gpencil_polyline(params):
|
||||
("gpencil.primitive_polyline", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True},
|
||||
{"properties": [("wait_for_input", False)]}),
|
||||
# Lasso select
|
||||
("gpencil.select_lasso", {"type": params.action_mouse,
|
||||
"value": 'CLICK_DRAG', "ctrl": True, "alt": True}, None),
|
||||
("gpencil.select_lasso",
|
||||
{"type": params.action_mouse, "value": 'CLICK_DRAG', "ctrl": True, "alt": True}, None),
|
||||
]},
|
||||
)
|
||||
|
||||
@@ -7923,8 +7934,8 @@ def km_3d_view_tool_paint_gpencil_box(params):
|
||||
("gpencil.primitive_box", {"type": 'LEFTMOUSE', "value": 'PRESS', "alt": True},
|
||||
{"properties": [("wait_for_input", False)]}),
|
||||
# Lasso select
|
||||
("gpencil.select_lasso", {"type": params.action_mouse,
|
||||
"value": 'CLICK_DRAG', "ctrl": True, "alt": True}, None),
|
||||
("gpencil.select_lasso",
|
||||
{"type": params.action_mouse, "value": 'CLICK_DRAG', "ctrl": True, "alt": True}, None),
|
||||
]},
|
||||
)
|
||||
|
||||
@@ -7941,8 +7952,8 @@ def km_3d_view_tool_paint_gpencil_circle(params):
|
||||
("gpencil.primitive_circle", {"type": 'LEFTMOUSE', "value": 'PRESS', "alt": True},
|
||||
{"properties": [("wait_for_input", False)]}),
|
||||
# Lasso select
|
||||
("gpencil.select_lasso", {"type": params.action_mouse,
|
||||
"value": 'CLICK_DRAG', "ctrl": True, "alt": True}, None),
|
||||
("gpencil.select_lasso",
|
||||
{"type": params.action_mouse, "value": 'CLICK_DRAG', "ctrl": True, "alt": True}, None),
|
||||
]},
|
||||
)
|
||||
|
||||
@@ -7959,8 +7970,8 @@ def km_3d_view_tool_paint_gpencil_arc(params):
|
||||
("gpencil.primitive_curve", {"type": 'LEFTMOUSE', "value": 'PRESS', "alt": True},
|
||||
{"properties": [("type", 'ARC'), ("wait_for_input", False)]}),
|
||||
# Lasso select
|
||||
("gpencil.select_lasso", {"type": params.action_mouse,
|
||||
"value": 'CLICK_DRAG', "ctrl": True, "alt": True}, None),
|
||||
("gpencil.select_lasso",
|
||||
{"type": params.action_mouse, "value": 'CLICK_DRAG', "ctrl": True, "alt": True}, None),
|
||||
]},
|
||||
)
|
||||
|
||||
@@ -7973,8 +7984,8 @@ def km_3d_view_tool_paint_gpencil_curve(params):
|
||||
("gpencil.primitive_curve", params.tool_maybe_tweak_event,
|
||||
{"properties": [("type", 'CURVE'), ("wait_for_input", False)]}),
|
||||
# Lasso select
|
||||
("gpencil.select_lasso", {"type": params.action_mouse,
|
||||
"value": 'CLICK_DRAG', "ctrl": True, "alt": True}, None),
|
||||
("gpencil.select_lasso",
|
||||
{"type": params.action_mouse, "value": 'CLICK_DRAG', "ctrl": True, "alt": True}, None),
|
||||
]},
|
||||
)
|
||||
|
||||
@@ -7986,8 +7997,8 @@ def km_3d_view_tool_paint_gpencil_cutter(params):
|
||||
{"items": [
|
||||
("gpencil.stroke_cutter", {"type": params.tool_mouse, "value": 'PRESS'}, None),
|
||||
# Lasso select
|
||||
("gpencil.select_lasso", {"type": params.action_mouse,
|
||||
"value": 'CLICK_DRAG', "ctrl": True, "alt": True}, None),
|
||||
("gpencil.select_lasso",
|
||||
{"type": params.action_mouse, "value": 'CLICK_DRAG', "ctrl": True, "alt": True}, None),
|
||||
]},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user