Multiline UIText, enter produces newline
@@ -446,6 +446,10 @@ else if (event.getKeyCharacter() != 0 && lastFont.hasCharacter(event.getKeyChara
}
case KeyId.ENTER:
case KeyId.NUMPAD_ENTER: {
+ if (multiline) {
+ setText(fullText + "\n");
+ increaseCursorPosition(1);
+ }
for (ActivateEventListener listener : activationListeners) {
listener.onActivated(this);
}
