diff --git a/packages/commonwealth/client/scripts/views/components/component_kit/CWImageInput/UploadControl.tsx b/packages/commonwealth/client/scripts/views/components/component_kit/CWImageInput/UploadControl.tsx index 8394e29b024..0cb77dd6758 100644 --- a/packages/commonwealth/client/scripts/views/components/component_kit/CWImageInput/UploadControl.tsx +++ b/packages/commonwealth/client/scripts/views/components/component_kit/CWImageInput/UploadControl.tsx @@ -204,9 +204,9 @@ export const UploadControl = ({ className="generate-image-section" onClick={(e) => e.stopPropagation()} onKeyDown={(e) => { - e.preventDefault(); - e.stopPropagation(); if (e.key === 'Enter' && imagePrompt.trim()) { + e.preventDefault(); + e.stopPropagation(); generateImage({ prompt: imagePrompt.trim() }).catch( console.error, );