Detecting completed edit of an EditText field?

On 08/05/2014 at 15:58, xxxxxxxx wrote:

Does anyone have any suggestions for detecting when a user is "done" editing an EditText field? How do I know when a user has clicked away from my text edit field?

I have a GeDialog that saves its data to a container whenever a change to an EditText field is detected with the Command() method. However, I need to call StartUndo() when a user first starts editing the text, and EndUndo() when the user is done editing the text (clicks out of the text-field). Otherwise I'll end up with an undo step for every character a user types.