diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-05-20 20:23:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-20 20:23:53 +0000 |
commit | 3605407033fa50408239924e77ccf38dcd5225b9 (patch) | |
tree | ed6255be57afc1b67d25935157114ada78925219 /javascript/edit-attention.js | |
parent | 05e6fc9aa944dd6e3ee01eae0817f8b51134ffab (diff) | |
parent | 373903d8518c8e0309fabd8e9d08ad61022b8447 (diff) | |
download | stable-diffusion-webui-gfx803-3605407033fa50408239924e77ccf38dcd5225b9.tar.gz stable-diffusion-webui-gfx803-3605407033fa50408239924e77ccf38dcd5225b9.tar.bz2 stable-diffusion-webui-gfx803-3605407033fa50408239924e77ccf38dcd5225b9.zip |
Merge pull request #10576 from catboxanon/patch/hires-prompt-edit-attn
Support edit attention keyboard shortcuts in hires fix prompts
Diffstat (limited to 'javascript/edit-attention.js')
-rw-r--r-- | javascript/edit-attention.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/edit-attention.js b/javascript/edit-attention.js index fdf00b4d..ffa73147 100644 --- a/javascript/edit-attention.js +++ b/javascript/edit-attention.js @@ -1,6 +1,6 @@ function keyupEditAttention(event) { let target = event.originalTarget || event.composedPath()[0]; - if (!target.matches("[id*='_toprow'] [id*='_prompt'] textarea")) return; + if (!target.matches("*:is([id*='_toprow'] [id*='_prompt'], .prompt) textarea")) return; if (!(event.metaKey || event.ctrlKey)) return; let isPlus = event.key == "ArrowUp"; |