         {
             if (multiline)
             {
+                // This is the same code that is in the EditManager for handling
+                // the enter key.
         		getEditManager().splitParagraph();
         		releaseEditManager();
+                event.preventDefault();
+                event.stopImmediatePropagation();
             }
             else
             {

            displayAsPasswordChanged = false;
        }
        
        if (enabledChanged || selectableChanged || editableChanged)
        {
        	updateEditingMode();
        	
            enabledChanged = false;
            editableChanged = false;
            selectableChanged = false;        	
        }
                        
        if (clipAndEnableScrollingChanged)
        {
            // Not sure if there is any real difference between on and auto.

        	selectionFormatsChanged = false;
        }

        if (enabledChanged || selectableChanged || editableChanged)
        {
            updateEditingMode();
            
            enabledChanged = false;
            editableChanged = false;
            selectableChanged = false;          
        }
                        
        if (textChanged)
        {
        	if (debug)
