Focus input bar when not on mobile

This improves the UX on desktop while avoiding the virtual keyboard popping up on touch devices.

I've also included two commits to remove trailing spaces and to replace tabs, which I reckon do not need further discussion.