Fix #111432: Shortcut for cycling fallback tool not working

Add missing Keymap for cycling fallback tool in node editor
to maintain consistency.

Pull Request: https://projects.blender.org/blender/blender/pulls/112006
This commit is contained in:
Pratik Borhade
2023-09-07 13:01:33 +02:00
committed by Pratik Borhade
parent 73057cfd22
commit 9f4f50ef70

View File

@@ -2126,6 +2126,10 @@ def km_node_editor(params):
# 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))
else:
items.extend([
op_tool_cycle("builtin.select_box", {"type": 'W', "value": 'PRESS'}),
])
else:
items.extend(_template_node_select(
type='RIGHTMOUSE', value=params.select_mouse_value, select_passthrough=True))