diff --git a/invokeai/frontend/web/src/features/canvas/components/IAICanvasStagingAreaToolbar.tsx b/invokeai/frontend/web/src/features/canvas/components/IAICanvasStagingAreaToolbar.tsx index c775b1ef7b..5c41626c95 100644 --- a/invokeai/frontend/web/src/features/canvas/components/IAICanvasStagingAreaToolbar.tsx +++ b/invokeai/frontend/web/src/features/canvas/components/IAICanvasStagingAreaToolbar.tsx @@ -79,6 +79,16 @@ const IAICanvasStagingAreaToolbar = () => { preventDefault: true, }); + useHotkeys( + ['esc'], + () => { + handleDiscardStagingArea(); + }, + { + preventDefault: true, + } + ); + const { data: imageDTO } = useGetImageDTOQuery(currentStagingAreaImage?.imageName ?? skipToken); const handleToggleShouldShowStagingImage = useCallback(() => { @@ -165,7 +175,7 @@ const IAICanvasStagingAreaToolbar = () => { colorScheme="invokeBlue" /> } onClick={handleDiscardStagingArea}