I have dojo form which is being submitted using Enter button.
I want to prevent from this event to to be called from all of the form elements in my form (when clicking on enter).
I tried this code:
dojo.connect(form, "onsubmit", function(evt) {
evt.preventDefault();
window.history.back();
});
For some reason my continue button (which is the submit action) turns to be disabled.
What can I do in order to prevent from this issue to happened ?