Skip to content

Commit 00d3cd4

Browse files
zopieuxpsychedelicious
authored andcommitted
Fix 'Del' hotkey to delete current image.
1 parent 075f9b3 commit 00d3cd4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

invokeai/frontend/web/src/features/gallery/components/CurrentImage/CurrentImageButtons.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,14 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => {
210210
[imageDTO, shouldShowImageDetails, toaster]
211211
);
212212

213+
useHotkeys(
214+
'delete',
215+
() => {
216+
handleDelete();
217+
},
218+
[dispatch, imageDTO]
219+
);
220+
213221
const handleClickProgressImagesToggle = useCallback(() => {
214222
dispatch(setShouldShowProgressInViewer(!shouldShowProgressInViewer));
215223
}, [dispatch, shouldShowProgressInViewer]);

0 commit comments

Comments
 (0)