mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fixes invoke hotkey not working in input fields
This commit is contained in:
parent
a7f11a8c09
commit
fcd3ef1f98
@ -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]
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user