It looks like the behavior here may be changing in an unexpected way (and contrary to the comment above). It appears that if you hit the enter key the dialog *used to* dismiss. Now, it will click the button but the dialog will not automatically dismiss even if `autoDismiss` is true.

Shouldn't it set the buttonId and click the primary button?