diff --git a/frontend/src/features/options/components/ProcessButtons/InvokeButton.tsx b/frontend/src/features/options/components/ProcessButtons/InvokeButton.tsx index 97b11323df..30aab9744c 100644 --- a/frontend/src/features/options/components/ProcessButtons/InvokeButton.tsx +++ b/frontend/src/features/options/components/ProcessButtons/InvokeButton.tsx @@ -27,9 +27,12 @@ export default function InvokeButton(props: InvokeButton) { useHotkeys( ['ctrl+enter', 'meta+enter'], () => { - if (isReady) { - dispatch(generateImage(activeTabName)); - } + dispatch(generateImage(activeTabName)); + }, + { + enabled: () => isReady, + preventDefault: true, + enableOnFormTags: ['input', 'textarea', 'select'], }, [isReady, activeTabName] );