Fix use of arrow keys in HTML5 text input

This commit is contained in:
Joshua Granick
2018-02-08 13:03:33 -08:00
parent 94441d613c
commit e2d57a8f07

View File

@@ -383,13 +383,11 @@ class HTML5Window {
if (textInput.value != dummyCharacter) {
if (textInput.value.charAt (0) == dummyCharacter) {
var value = StringTools.replace (textInput.value, dummyCharacter, "");
parent.onTextInput.dispatch (textInput.value.substr (1));
if (value.length > 0) {
} else {
parent.onTextInput.dispatch (textInput.value);
parent.onTextInput.dispatch (value);
}