Skip to content

Commit 352b331

Browse files
Merge pull request #4210 from byzod/patch-1
Fix #3904 (hotkey to edit weight of tag is not working in (most) localizations)
2 parents 371c4b9 + 7e5f156 commit 352b331

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)