How can I run dialog validation when user hits [RETURN] key?
When the user hits the [RETURN] key on the keyboard, a currently displayed dialog is dismissed, but the defaultElement's onClick() handler is not getting called.
How can I run validation when the user hits the [RETURN] key, keeping the dialog from closing early?
