Submit dialogs when enter pressed in text box