aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/edit-attention.js
diff options
context:
space:
mode:
authorpapuSpartan <30642826+papuSpartan@users.noreply.github.com>2022-11-07 03:05:28 +0000
committerGitHub <noreply@github.com>2022-11-07 03:05:28 +0000
commit00ebc26c4e2962a31e067539d89cd695d999539a (patch)
tree4c2d46e00ffcc5b606f4841926b3a61fed903f00 /javascript/edit-attention.js
parent86d35526a13a0e2432ab71d1d40b191615d3e343 (diff)
parent804d9fb83d0c63ca3acd36378707ce47b8f12599 (diff)
downloadstable-diffusion-webui-gfx803-00ebc26c4e2962a31e067539d89cd695d999539a.tar.gz
stable-diffusion-webui-gfx803-00ebc26c4e2962a31e067539d89cd695d999539a.tar.bz2
stable-diffusion-webui-gfx803-00ebc26c4e2962a31e067539d89cd695d999539a.zip
Merge branch 'AUTOMATIC1111:master' into master
Diffstat (limited to 'javascript/edit-attention.js')
-rw-r--r--javascript/edit-attention.js3
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;