Fix using enter to submit on android (bug 1104105)

This prevent us causing the focus to disapper when using enter to submit in Android.