Fix for shifting content to a new line on enter.

When a user hits enter while the cursor is in the middle of a line, then text after the cursor is moved down a line. EG, the text is extracted from the focused element, and placed inside the new element created by the user.