mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-27 12:21:38 -08:00
ALT + return will submit prompt when it's in focus
This commit is contained in:
parent
89f0acc6bf
commit
d1db330010
3 changed files with 12 additions and 2 deletions
|
|
@ -380,7 +380,7 @@ def create_toprow(is_img2img):
|
|||
with gr.Column(scale=1):
|
||||
with gr.Row():
|
||||
interrupt = gr.Button('Interrupt', elem_id=f"{id_part}_interrupt")
|
||||
submit = gr.Button('Generate', elem_id="generate", variant='primary')
|
||||
submit = gr.Button('Generate', elem_id=f"{id_part}_generate", variant='primary')
|
||||
|
||||
interrupt.click(
|
||||
fn=lambda: shared.state.interrupt(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue