context-aware focus on input elements