Auto close topic on form submit rather than button click.
Merge pull request #1717 from vikhyat/fix-auto-close-form-submit

Fix auto close topic modal when pressing enter