diff --git a/app_scripts.js b/app_scripts.js index d7872cb..b6d6246 100644 --- a/app_scripts.js +++ b/app_scripts.js @@ -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) {