Skip to content

Commit

Permalink
make attention edit only work with ctrl as was initially intended
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Oct 15, 2022
1 parent 97f0727 commit 73901c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions javascript/edit-attention.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 73901c3

Please sign in to comment.