HTML5 text input fix

This commit is contained in:
Joshua Granick
2016-12-07 13:30:30 -08:00
parent 86906b9e58
commit ccbebea07a

View File

@@ -320,7 +320,16 @@ class HTML5Window {
if (textInput.value != " ") {
parent.onTextInput.dispatch (textInput.value.substr(1));
if (textInput.value.length < 2) {
parent.onTextInput.dispatch (textInput.value);
} else {
parent.onTextInput.dispatch (textInput.value.substr (1));
}
textInput.value = " ";
}