I have a Dialog that contains a text box that users enter a search and a button to update the data for them to choose from. Problem is if the user types in the text field, and hits the enter key (rather then than clicking the button) it closes the dialog.
In tried to capture the keypress event code was 13 on the field and that works (I had it do an alert), but it doesn't prevent the dialog close. I assume this is a dijit.dialog thing but I can't seem to figure how to solve this.
Thanks!