Prevent dialog form submission on enter key in non-ajax mode to ensure proper redirection after entity creation