Keymap: Make Clip Editor Graph view consistent with regular Graph Editor
authorWilliam Reynish <billrey@me.com>
Wed, 8 May 2019 12:54:05 +0000 (14:54 +0200)
committerWilliam Reynish <billrey@me.com>
Wed, 8 May 2019 12:54:05 +0000 (14:54 +0200)
Still missing a context menu here for now though

release/scripts/presets/keyconfig/keymap_data/blender_default.py

index a708be1..bc00161 100644 (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