mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-24 10:09:32 -06:00
Project: Delete Project Items Without Confirmation is a command, on Shift+Delete (#484)
A frontend command (project.deleteWithoutConfirmation) so the shortcut is listed and rebindable in Keyboard Shortcuts and runs by id over the control channel and MCP. The UI runs project.delete for it.
This commit is contained in:
@@ -106,5 +106,15 @@ pub fn specs() -> Vec<CommandSpec> {
|
||||
fe!("layer.openLayer", "Open Layer", ["Layer"], None, "{layer?}", has_layers),
|
||||
fe!("effect.manage", "Manage Effects...", ["Effect"], None, "{}", always),
|
||||
fe!("anim.browsePresets", "Browse Presets...", ["Animation"], None, "{}", always),
|
||||
// Project panel: delete the selected items without the prompt that Delete shows when
|
||||
// compositions use them. The UI runs `project.delete` (agents can run it directly).
|
||||
fe!(
|
||||
"project.deleteWithoutConfirmation",
|
||||
"Delete Project Items Without Confirmation",
|
||||
[],
|
||||
Some("Shift+Delete"),
|
||||
"{} — the Project panel's selection, with the layers that use it; one undo step",
|
||||
always
|
||||
),
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user