aboutsummaryrefslogtreecommitdiff
path: root/javascript/edit-attention.js
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-05-20 23:23:53 +0300
committerGitHub <noreply@github.com>2023-05-20 23:23:53 +0300
commit3605407033fa50408239924e77ccf38dcd5225b9 (patch)
treeed6255be57afc1b67d25935157114ada78925219 /javascript/edit-attention.js
parent05e6fc9aa944dd6e3ee01eae0817f8b51134ffab (diff)
parent373903d8518c8e0309fabd8e9d08ad61022b8447 (diff)
Merge pull request #10576 from catboxanon/patch/hires-prompt-edit-attn
Support edit attention keyboard shortcuts in hires fix prompts
Diffstat (limited to 'javascript/edit-attention.js')
-rw-r--r--javascript/edit-attention.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/edit-attention.js b/javascript/edit-attention.js
index fdf00b4d..ffa73147 100644
--- a/javascript/edit-attention.js
+++ b/javascript/edit-attention.js
@@ -1,6 +1,6 @@
function keyupEditAttention(event) {
let target = event.originalTarget || event.composedPath()[0];
- if (!target.matches("[id*='_toprow'] [id*='_prompt'] textarea")) return;
+ if (!target.matches("*:is([id*='_toprow'] [id*='_prompt'], .prompt) textarea")) return;
if (!(event.metaKey || event.ctrlKey)) return;
let isPlus = event.key == "ArrowUp";