mirror of https://github.com/anoshenko/rui.git
Bug fixing
This commit is contained in:
parent
589b05ce18
commit
18e053693c
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue