aboutsummaryrefslogtreecommitdiff
path: root/javascript/edit-attention.js
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-11-04 10:47:49 +0300
committerGitHub <noreply@github.com>2022-11-04 10:47:49 +0300
commit352b33106a64a8c34d1f5d79fcb377a73b02e39c (patch)
tree10f4a47079b9e04275d666b925d956b87868d27b /javascript/edit-attention.js
parent371c4b990eca3f2418e62ce8c852e9a52d39e445 (diff)
parent7e5f1562ecb08557c2997bdc4fd26a77e41b0e25 (diff)
Merge pull request #4210 from byzod/patch-1
Fix #3904 (hotkey to edit weight of tag is not working in (most) localizations)
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;