Add missing keybinds to scene list (#5994)

This commit is contained in:
WithoutPants
2025-07-03 14:41:06 +10:00
committed by GitHub
parent 1b3a8acab2
commit 642b0f2291

View File

@@ -564,6 +564,25 @@ export const FilteredSceneList = (props: IFilteredScenes) => {
setShowSidebar,
});
useEffect(() => {
Mousetrap.bind("e", () => {
if (hasSelection) {
onEdit?.();
}
});
Mousetrap.bind("d d", () => {
if (hasSelection) {
onDelete?.();
}
});
return () => {
Mousetrap.unbind("e");
Mousetrap.unbind("d d");
};
});
const onCloseEditDelete = useCloseEditDelete({
closeModal,
onSelectNone,