From the help file:

If there is an input editbox, the ok/yes buttons always return the contents of the editbox.