Automatically set focus to the first input field in the dialog