Select: Add 'deselect on nothing' to Graph (fcurves) editor.

Part of T63995.
This commit is contained in:
Bastien Montagne
2019-04-30 16:26:31 +02:00
parent 86ff61f853
commit de38778535
2 changed files with 27 additions and 12 deletions

View File

@@ -1381,7 +1381,8 @@ def km_graph_editor(params):
{"properties": [("data_path", 'space_data.show_handles')]}),
("graph.cursor_set", {"type": params.action_mouse, "value": 'PRESS'}, None),
("graph.clickselect", {"type": params.select_mouse, "value": 'PRESS'},
{"properties": [("extend", False), ("column", False), ("curves", False)]}),
{"properties": [("extend", False), ("deselect_all", not params.legacy),
("column", False), ("curves", False)]}),
("graph.clickselect", {"type": params.select_mouse, "value": 'PRESS', "alt": True},
{"properties": [("extend", False), ("column", True), ("curves", False)]}),
("graph.clickselect", {"type": params.select_mouse, "value": 'PRESS', "shift": True},