fix for eslint

This commit is contained in:
AUTOMATIC1111 2023-07-08 17:53:17 +03:00
parent 4981c7d370
commit e3507a1be4

View File

@ -6,7 +6,7 @@ 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()
event.preventDefault();
let isLeft = event.key == "ArrowLeft";
let isRight = event.key == "ArrowRight";