Keymap: Make Clip Editor Graph view consistent with regular Graph Editor

Still missing a context menu here for now though
This commit is contained in:
William Reynish
2019-05-08 14:54:05 +02:00
parent 4a98e33785
commit 503ced78f3

View File

@@ -2747,7 +2747,6 @@ def km_clip_graph_editor(params):
)
items.extend([
("clip.change_frame", {"type": params.action_mouse, "value": 'PRESS'}, None),
("clip.graph_select", {"type": params.select_mouse, "value": 'PRESS'},
{"properties": [("extend", False)]}),
("clip.graph_select", {"type": params.select_mouse, "value": 'PRESS', "shift": True},
@@ -2777,6 +2776,15 @@ def km_clip_graph_editor(params):
("transform.rotate", {"type": 'R', "value": 'PRESS'}, None),
])
if params.select_mouse == 'LEFTMOUSE' and not params.legacy:
items.extend([
("clip.change_frame", {"type": 'RIGHTMOUSE', "value": 'PRESS', "shift": True}, None),
])
else:
items.extend([
("clip.change_frame", {"type": params.action_mouse, "value": 'PRESS'}, None),
])
return keymap