In the above example we have created a simple directive to set auto focus on text box. This is certainly an accessibility friendly solution, but obviously it adjusts the behaviour of mouse clicks which may not be compatible with your web project. The