now dialogs support handling of enter and ctrl + enter keys