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;
|
||||
}
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue