Fix text field resizing and insert newlines on Shift-Return.