VSE: Move snap toggle to global SequencerCommon

This allows the keybind to be invoked from either the Sequencer or
Preview view types, now that snapping is also possible in the Preview.
This commit is contained in:
John Kiril Swenson
2025-02-03 15:02:41 -06:00
parent 8363dd6c0d
commit f79df39171

View File

@@ -2969,6 +2969,8 @@ def km_sequencercommon(params):
{"properties": [("data_path", "scene.sequence_editor.show_overlay_frame")]}),
("wm.context_toggle_enum", {"type": 'TAB', "value": 'PRESS', "ctrl": True},
{"properties": [("data_path", "space_data.view_type"), ("value_1", 'SEQUENCER'), ("value_2", 'PREVIEW')]}),
("wm.context_toggle", {"type": 'TAB', "value": 'PRESS', "shift": True},
{"properties": [("data_path", "tool_settings.use_snap_sequencer")]}),
("sequencer.refresh_all", {"type": 'E', "value": 'PRESS', "ctrl": True}, None),
])
@@ -3108,8 +3110,6 @@ def km_sequencer(params):
{"properties": [("side", 'LEFT')]}),
("sequencer.select_side_of_frame", {"type": 'RIGHT_BRACKET', "value": 'PRESS'},
{"properties": [("side", 'RIGHT')]}),
("wm.context_toggle", {"type": 'TAB', "value": 'PRESS', "shift": True},
{"properties": [("data_path", "tool_settings.use_snap_sequencer")]}),
("wm.context_toggle", {"type": 'Z', "value": 'PRESS', "alt": True, "shift": True},
{"properties": [("data_path", "space_data.show_overlays")]}),
*_template_items_context_menu("SEQUENCER_MT_context_menu", params.context_menu_event),