Download

New line on Shift+Enter for UMultiLineEditableText and UMultiLineEditableTextBox ?

Hello,

Is there a way to customize the multiple lines editable text (UMultiLineEditableText and UMultiLineEditableTextBox) so that:

  • they commit on Enter
  • they start a new line on Shift+Enter

Thanks
Cedric

Polite bump, anyone ?
Thanks

AFAIK the new line on enter is hard-coded to the base FSlateEditableTextLayout class attached to the multiline widget.

I tried to override OnKeyDownHandler to intercept the Enter key event (and that was supposed to work), but Slate will insert the new line either way. This problem has bothered me for weeks.

Thanks a lot for the info, too bad this customization is not made easy, it would really be useful.