make attention edit only work with ctrl as was initially intended

This commit is contained in:
AUTOMATIC 2022-10-15 15:51:57 +03:00
parent 97f0727489
commit 73901c3f01
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,8 @@ addEventListener('keydown', (event) => {
let target = event.originalTarget || event.composedPath()[0];
if (!target.hasAttribute("placeholder")) return;
if (!target.placeholder.toLowerCase().includes("prompt")) return;
if (! (event.metaKey || event.ctrlKey)) return;
let plus = "ArrowUp"
let minus = "ArrowDown"