Fix using enter to submit on android (bug 1104105)

This prevent us causing the focus to disapper when using enter to submit in Android.
Why was the `window.focus` check here before? It seems like it should always be present but maybe it is still needed?