Adding new code for feature save on unfocus. This is from ticket #542. It also adds...