Check text fields' changes before losing focus.

There is a very uncommon problem that would
make your changes to remain unsaved. If you
focus on another field before releasing the
key in the previous one, changes are not re-
gistered. This has been fixed by adding a
focus listener as well.