Skip to content

Commit 7e5f156

Browse files
authored
Update edit-attention.js
Fix #3904 (Some sort of a workaround, the best way is to add unique id or class name to those prompt boxes)
1 parent d98eace commit 7e5f156

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

javascript/edit-attention.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
addEventListener('keydown', (event) => {
22
let target = event.originalTarget || event.composedPath()[0];
3-
if (!target.hasAttribute("placeholder")) return;
4-
if (!target.placeholder.toLowerCase().includes("prompt")) return;
3+
if (!target.matches("#toprow textarea.gr-text-input[placeholder]")) return;
54
if (! (event.metaKey || event.ctrlKey)) return;
65

76

0 commit comments

Comments
 (0)