Allow using alt in the prompt fields again

This commit is contained in:
Aarni Koskela 2023-07-11 15:05:20 +03:00
parent 799760ab95
commit 3636c2c6ed
1 changed files with 1 additions and 1 deletions

View File

@ -6,11 +6,11 @@ function keyupEditOrder(event) {
let target = event.originalTarget || event.composedPath()[0];
if (!target.matches("*:is([id*='_toprow'] [id*='_prompt'], .prompt) textarea")) return;
if (!event.altKey) return;
event.preventDefault();
let isLeft = event.key == "ArrowLeft";
let isRight = event.key == "ArrowRight";
if (!isLeft && !isRight) return;
event.preventDefault();
let selectionStart = target.selectionStart;
let selectionEnd = target.selectionEnd;