From d4831bb68d26d42aa90dd376f1c6c648d90145e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=BE=D0=BC=D0=B0=D0=BD=20=D0=91=D0=BE=D1=80=D0=BE?= =?UTF-8?q?=D0=B4=D0=B8=D0=BD?= Date: Fri, 12 Apr 2024 16:17:56 +0300 Subject: [PATCH] upstream: Bug fixing --- app_scripts.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app_scripts.js b/app_scripts.js index d7872cb..b6d6246 100644 --- a/app_scripts.js +++ b/app_scripts.js @@ -311,10 +311,17 @@ function keyEvent(element, event, tag) { message += ",timeStamp=" + event.timeStamp; } if (event.key) { - if (event.key == '"') { - message += ",key=`" + event.key + "`"; - } else { - message += ",key=\"" + event.key + "\""; + switch (event.key) { + case '"': + message += ",key=`\"`"; + break + + case '\\': + message += ",key=`\\`"; + break + + default: + message += ",key=\"" + event.key + "\""; } } if (event.code) {