We already fixed this bug few releases ago but it seems we missed something. Dirty flag is correctly set when enter key is pressed after value change but not when you click outside the edit area after modification.
UPDATE: The dirty flag is correctly set only when new attribute value is entered, not when value is updated.
UPDATE2: Only when new and first attribute is set ;-)
This should be easy to fix.