fix ctrl+up/down attention edit

fix dropdown obscured by live preview
stylistic changes
This commit is contained in:
AUTOMATIC
2023-03-21 06:49:19 +03:00
parent 9f0da9f6ed
commit 9b2f205400
3 changed files with 14 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
function keyupEditAttention(event){
let target = event.originalTarget || event.composedPath()[0];
if (!target.matches("[id*='_toprow'] textarea.gr-text-input[placeholder]")) return;
if (! target.matches("[id*='_toprow'] [id*='_prompt'] textarea")) return;
if (! (event.metaKey || event.ctrlKey)) return;
let isPlus = event.key == "ArrowUp"