Allow submit with enter if results not showing

If the result layer is not open an the user presses enter the from should be submitted.

Taken from #434, which seems to work already for a bunch of people.

Fixes #434