adding back functionality to submit forms via 'enter' key. backported from nfftt