Use a directive for putting focus into text inputs.