forked from mbk-lab/rui_orig
upstream: Bug fixing
This commit is contained in:
parent
7b3caa64bd
commit
d4831bb68d
|
@ -311,9 +311,16 @@ function keyEvent(element, event, tag) {
|
|||
message += ",timeStamp=" + event.timeStamp;
|
||||
}
|
||||
if (event.key) {
|
||||
if (event.key == '"') {
|
||||
message += ",key=`" + event.key + "`";
|
||||
} else {
|
||||
switch (event.key) {
|
||||
case '"':
|
||||
message += ",key=`\"`";
|
||||
break
|
||||
|
||||
case '\\':
|
||||
message += ",key=`\\`";
|
||||
break
|
||||
|
||||
default:
|
||||
message += ",key=\"" + event.key + "\"";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue