Keymap: Special keymap for clip editor scrubbing area

Reviewers: sergey

Differential Revision: https://developer.blender.org/D4825
This commit is contained in:
2019-05-08 14:10:09 +02:00
parent 6950faa24e
commit c79fc710b3
5 changed files with 31 additions and 8 deletions

View File

@@ -1322,6 +1322,20 @@ def km_scrubbing(params):
return keymap
def km_scrubbing_clip(params):
items = []
keymap = (
"Clip Scrubbing",
{"space_type": 'CLIP_EDITOR', "region_type": 'PREVIEW'},
{"items": items},
)
items.extend([
("clip.change_frame", {"type": "LEFTMOUSE", "value": 'PRESS'}, None),
])
return keymap
def km_graph_editor_generic(_params):
items = []
@@ -6165,6 +6179,7 @@ def generate_keymaps(params=None):
km_mask_editing(params),
km_markers(params),
km_scrubbing(params),
km_scrubbing_clip(params),
km_graph_editor_generic(params),
km_graph_editor(params),
km_image_generic(params),