Implemented editing ending when clicking outside of the control.