forked from mbk-lab/rui_orig
2
0
Fork 0

upstream: Bug fixing

This commit is contained in:
Роман Бородин 2024-04-12 16:17:56 +03:00
parent 7b3caa64bd
commit d4831bb68d
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) {