Added listener to error dialog which closes the dialog if Enter is
pressed