Fix T71126: add old hotkeys to set start/end frame in the timeline to
authorPhilipp Oeser <info@graphics-engineer.com>
Tue, 29 Oct 2019 09:39:07 +0000 (10:39 +0100)
committerPhilipp Oeser <info@graphics-engineer.com>
Tue, 29 Oct 2019 13:03:03 +0000 (14:03 +0100)
Blender 27X keymap

Maniphest Tasks: T71126

Differential Revision: https://developer.blender.org/D6151

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

index 6ad0ccf8a5f2fad6f67fe326eb242c5b54a841de..8a86ece53ce041ce737433f5b49db182f9603df1 100644 (file)
@@ -2855,6 +2855,17 @@ def km_animation(params):
         {"items": items},
     )
 
+    if not params.legacy:
+        items.extend([
+            ("anim.start_frame_set", {"type": 'HOME', "value": 'PRESS', "ctrl": True}, None),
+            ("anim.end_frame_set", {"type": 'END', "value": 'PRESS', "ctrl": True}, None),
+        ])
+    else:
+        items.extend([
+            ("anim.start_frame_set", {"type": 'S', "value": 'PRESS'}, None),
+            ("anim.end_frame_set", {"type": 'E', "value": 'PRESS'}, None),
+        ])
+
     items.extend([
         # Frame management.
         ("wm.context_toggle", {"type": 'T', "value": 'PRESS', "ctrl": True},
@@ -2862,8 +2873,6 @@ def km_animation(params):
         # Preview range.
         ("anim.previewrange_set", {"type": 'P', "value": 'PRESS'}, None),
         ("anim.previewrange_clear", {"type": 'P', "value": 'PRESS', "alt": True}, None),
-        ("anim.start_frame_set", {"type": 'HOME', "value": 'PRESS', "ctrl": True}, None),
-        ("anim.end_frame_set", {"type": 'END', "value": 'PRESS', "ctrl": True}, None),
     ])
 
     if params.select_mouse == 'LEFTMOUSE' and not params.legacy: