TextEditor loses focus on return key in Studio One

Hi all,

I’m creating a plugin in which I use a TextEditor to capture some notes of a user.
Problem is that, whatever I try, the plug-in seems to lose focus when the return key is pressed.
In the AudioPluginHost the problem does not occur; you just go to the next line like desired.
However in Studio One the plug-in just gives away focus (OnFocusLost is called).

The settings on the TextEditor:

Does anybody know a solution to this problem???