@@ -361,6 +361,14 @@ function typeNextCharacter() {
};
window.addEventListener("keydown",function(ev){
if(ev.keyCode===27){// check for esc before anything else, as it should always be available
//currentText = targetText;
while(currentText!==targetText)// print all available text immediately when esc is pressed
{
timeMsRemaining=0;
typeNextCharacter();
}
}
if(currentText!==targetText&&!sayAppend){//additionally checks if currently writing an append for say command so input is only hiding in other circumstances
return;// do not want player typing while description is writing itself