SHIFT + ENTER for newline
@@ -446,10 +446,13 @@ else if (event.getKeyCharacter() != 0 && lastFont.hasCharacter(event.getKeyChara
}
case KeyId.ENTER:
case KeyId.NUMPAD_ENTER: {
+ if (event.getKeyboard().isKeyDown(Keyboard.Key.LEFT_SHIFT.getId()) ||
+ event.getKeyboard().isKeyDown(Keyboard.Key.RIGHT_SHIFT.getId())) {
if (multiline) {
setText(fullText + "\n");
increaseCursorPosition(1);
}
+ }
for (ActivateEventListener listener : activationListeners) {
listener.onActivated(this);
}
