VSE: add copy and paste operators to preview keymap

This feature allows the user to use `ctrl + C`, `ctrl + V` and
`ctrl + shift + V` directly in the sequencer preview. It adds these
operators also to the preview Strip menu.

It works the same as in the sequencer timeline.

Pull Request: https://projects.blender.org/blender/blender/pulls/143371
This commit is contained in:
Ramon Klauck
2025-08-11 21:40:04 +02:00
committed by Richard Antalik
parent 402080f938
commit 1a9817cdca
2 changed files with 6 additions and 0 deletions

View File

@@ -3242,6 +3242,10 @@ def km_sequencer_preview(params):
{"properties": [("unselected", False)]}),
("sequencer.delete", {"type": 'X', "value": 'PRESS'}, None),
("sequencer.delete", {"type": 'DEL', "value": 'PRESS'}, None),
("sequencer.copy", {"type": 'C', "value": 'PRESS', "ctrl": True}, None),
("sequencer.paste", {"type": 'V', "value": 'PRESS', "ctrl": True}, None),
("sequencer.paste", {"type": 'V', "value": 'PRESS', "ctrl": True, "shift": True},
{"properties": [("keep_offset", True)]}),
# Animation
("anim.keyframe_insert", {"type": 'I', "value": 'PRESS'}, None),

View File

@@ -1146,6 +1146,8 @@ class SEQUENCER_MT_strip(Menu):
if has_preview:
layout.separator()
layout.operator("sequencer.preview_duplicate_move", text="Duplicate")
layout.operator("sequencer.copy", text="Copy")
layout.operator("sequencer.paste", text="Paste")
layout.separator()
layout.menu("SEQUENCER_MT_strip_animation")
layout.separator()