aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJairo Correa <jn.j41r0@gmail.com>2022-10-07 23:05:47 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-08 06:38:44 +0000
commita958f9b3fdea95c01d360aba1b6fe0ce3ea6b349 (patch)
tree7acbbdf3ae91b133127a84019f2e562761e9c4e5
parentf7c787eb7c295c27439f4fbdf78c26b8389560be (diff)
downloadstable-diffusion-webui-gfx803-a958f9b3fdea95c01d360aba1b6fe0ce3ea6b349.tar.gz
stable-diffusion-webui-gfx803-a958f9b3fdea95c01d360aba1b6fe0ce3ea6b349.tar.bz2
stable-diffusion-webui-gfx803-a958f9b3fdea95c01d360aba1b6fe0ce3ea6b349.zip
edit-attention browser compatibility and readme typo
-rw-r--r--README.md2
-rw-r--r--javascript/edit-attention.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index a14a6330..0516c2cd 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ Check the [custom scripts](https://github.com/AUTOMATIC1111/stable-diffusion-web
- Attention, specify parts of text that the model should pay more attention to
- a man in a ((tuxedo)) - will pay more attention to tuxedo
- a man in a (tuxedo:1.21) - alternative syntax
- - select text and press ctrl+up or ctrl+down to aduotmatically adjust attention to selected text
+ - select text and press ctrl+up or ctrl+down to automatically adjust attention to selected text
- Loopback, run img2img processing multiple times
- X/Y plot, a way to draw a 2 dimensional plot of images with different parameters
- Textual Inversion
diff --git a/javascript/edit-attention.js b/javascript/edit-attention.js
index c67ed579..0280c603 100644
--- a/javascript/edit-attention.js
+++ b/javascript/edit-attention.js
@@ -1,5 +1,5 @@
addEventListener('keydown', (event) => {
- let target = event.originalTarget;
+ let target = event.originalTarget || event.composedPath()[0];
if (!target.hasAttribute("placeholder")) return;
if (!target.placeholder.toLowerCase().includes("prompt")) return;