Bug fixing

This commit is contained in:
Alexei Anoshenko 2024-04-12 16:10:45 +03:00
parent 589b05ce18
commit 18e053693c
1 changed files with 11 additions and 4 deletions

View File

@ -311,10 +311,17 @@ function keyEvent(element, event, tag) {
message += ",timeStamp=" + event.timeStamp; message += ",timeStamp=" + event.timeStamp;
} }
if (event.key) { if (event.key) {
if (event.key == '"') { switch (event.key) {
message += ",key=`" + event.key + "`"; case '"':
} else { message += ",key=`\"`";
message += ",key=\"" + event.key + "\""; break
case '\\':
message += ",key=`\\`";
break
default:
message += ",key=\"" + event.key + "\"";
} }
} }
if (event.code) { if (event.code) {