When a script opens a dialog containing a text box, the typing focus isn't changed, I am asserting it should be - to the textbox, so that any subsequent typing should fill the text box.
Secondly after the dialog is closed, the typing focus should return to wherever it was before.