UX: Set focus when launching composer on iOS (PR #9443)

A small refactor of our Safari iOS hacks to enable setting focus on inputs/textareas when launching the composer. Should improve user experience when using an iPad with a keyboard, no need to tap the screen now while using keyboard shortcuts like c or r.