This has nothing to do with the wizard buttons.
The TextField <input>
is doing a form submit when the Enter key is pressed. This is standard behaviour for the <input>
element.
The solution is to catch the Enter key press for the <input>
and prevent the default behaviour
This bit of javascript magic does the trick for me:
<script type="text/javascript">
$(document).ready(function() {
$("#gridDiv").delegate("input","keypress",function(e){
if(e.originalEvent.keyCode == 13){
e.preventDefault();
}
});
});
</script>
where 'gridDiv' is the id of the <div>
containing the TextField