From 18e2b130fce4ebcb88a785fe4ab1c34800816c41 Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Mon, 10 Jul 2023 09:39:06 -0400 Subject: [PATCH] disable multiselect --- .../features/gallery/components/GalleryImage.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/invokeai/frontend/web/src/features/gallery/components/GalleryImage.tsx b/invokeai/frontend/web/src/features/gallery/components/GalleryImage.tsx index a8d4c84adc..42217230ce 100644 --- a/invokeai/frontend/web/src/features/gallery/components/GalleryImage.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/GalleryImage.tsx @@ -53,13 +53,15 @@ const GalleryImage = (props: HoverableImageProps) => { const handleClick = useCallback( (e: MouseEvent) => { - if (e.shiftKey) { - dispatch(imageRangeEndSelected(props.imageDTO.image_name)); - } else if (e.ctrlKey || e.metaKey) { - dispatch(imageSelectionToggled(props.imageDTO.image_name)); - } else { - dispatch(imageSelected(props.imageDTO.image_name)); - } + // multiselect disabled for now + // if (e.shiftKey) { + // dispatch(imageRangeEndSelected(props.imageDTO.image_name)); + // } else if (e.ctrlKey || e.metaKey) { + // dispatch(imageSelectionToggled(props.imageDTO.image_name)); + // } else { + // dispatch(imageSelected(props.imageDTO.image_name)); + // } + dispatch(imageSelected(props.imageDTO.image_name)); }, [dispatch, props.imageDTO.image_name] );