When at the end of the editor box, enter has to be pressed twice to enter a single new line. Probably related to tab insertion code.