         if (itemEditorInstance)
         {
             endEdit(AdvancedDataGridEventReason.OTHER);
-            losingFocus = true;
-            setFocus();
+			losingFocus = true;
+			setFocus();
         }
     }
 

        // some other thing like a collection change has changed the
        // position, so bail and wait for commit to reset the editor.
        if (_proposedEditedItemPosition !== undefined)
            return false;

        _editedItemPosition = lastEditedItemPosition;


	                if (_columns[_editedItemPosition.columnIndex].editable &&
	                    _columns[_editedItemPosition.columnIndex].visible)
	                {
						var row:Array = listItems[_editedItemPosition.rowIndex];
						if (row && row[_editedItemPosition.columnIndex])
						{
							foundOne = true;
							break;
						}
	                }
	            }

