Make selected textfield end editing when a save will occur (issue #203)