Catch submit event on top gadget.

This should prevent the browser to handle form submit (and so, prevent changing browser URL).