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:
tylerjenningsw
2026-10-09 16:24:53 -04:00
parent 30aaddf7c2
commit f59acb5b80
+10
View File
@@ -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
),
]
}