diff options
author | byzod <byzod@users.noreply.github.com> | 2022-11-03 10:54:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 10:54:25 +0000 |
commit | 7e5f1562ecb08557c2997bdc4fd26a77e41b0e25 (patch) | |
tree | 3453984c0f00b32690d7b8241e15be2668fc9088 | |
parent | d98eacea40c7a40227f36dbea9cf92f90489310b (diff) | |
download | stable-diffusion-webui-gfx803-7e5f1562ecb08557c2997bdc4fd26a77e41b0e25.tar.gz stable-diffusion-webui-gfx803-7e5f1562ecb08557c2997bdc4fd26a77e41b0e25.tar.bz2 stable-diffusion-webui-gfx803-7e5f1562ecb08557c2997bdc4fd26a77e41b0e25.zip |
Update edit-attention.js
Fix https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/3904
(Some sort of a workaround, the best way is to add unique id or class name to those prompt boxes)
-rw-r--r-- | javascript/edit-attention.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/javascript/edit-attention.js b/javascript/edit-attention.js index c0d29a74..b947cbec 100644 --- a/javascript/edit-attention.js +++ b/javascript/edit-attention.js @@ -1,7 +1,6 @@ addEventListener('keydown', (event) => {
let target = event.originalTarget || event.composedPath()[0];
- if (!target.hasAttribute("placeholder")) return;
- if (!target.placeholder.toLowerCase().includes("prompt")) return;
+ if (!target.matches("#toprow textarea.gr-text-input[placeholder]")) return;
if (! (event.metaKey || event.ctrlKey)) return;
|