Capture enter key in dialog popups properly.