Improve handling of submit buttons when determining when to preventDefault to avoid navigation.

Only preventDefault on click events of submit buttons, not *all* events.  I want to remove
handling of submit buttons altogether (letting the form submit event be prevented, instead),
but fear that this line was put in here to solve a specific case in some buggy browser.