Bug fix

Fixed issue where input fields other than a text field are not
preventing the default form submit event on enter key press.