Commit 15adff3d authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #11733 from akx/brace-for-impact

Allow using alt in the prompt fields again
parents 799760ab 3636c2c6
...@@ -6,11 +6,11 @@ function keyupEditOrder(event) { ...@@ -6,11 +6,11 @@ function keyupEditOrder(event) {
let target = event.originalTarget || event.composedPath()[0]; let target = event.originalTarget || event.composedPath()[0];
if (!target.matches("*:is([id*='_toprow'] [id*='_prompt'], .prompt) textarea")) return; if (!target.matches("*:is([id*='_toprow'] [id*='_prompt'], .prompt) textarea")) return;
if (!event.altKey) return; if (!event.altKey) return;
event.preventDefault();
let isLeft = event.key == "ArrowLeft"; let isLeft = event.key == "ArrowLeft";
let isRight = event.key == "ArrowRight"; let isRight = event.key == "ArrowRight";
if (!isLeft && !isRight) return; if (!isLeft && !isRight) return;
event.preventDefault();
let selectionStart = target.selectionStart; let selectionStart = target.selectionStart;
let selectionEnd = target.selectionEnd; let selectionEnd = target.selectionEnd;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment