aboutsummaryrefslogtreecommitdiff
path: root/javascript/edit-attention.js
diff options
context:
space:
mode:
authorevshiron <evshiron@gmail.com>2022-11-05 01:43:02 +0800
committerevshiron <evshiron@gmail.com>2022-11-05 01:43:02 +0800
commit73e1cd6f53f3566973805666a4049450cdb8da1b (patch)
tree90c4f0e6b8853c564894409c596e4bd57bca578a /javascript/edit-attention.js
parente21fcd72fcf147904a1df060226c4df12acf251e (diff)
parent89722fb5e4eda2adc5d3a6abf8babf8a58e80d69 (diff)
Merge branch 'master' into fix/encode-pnginfo
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;