Added support for mobile devices on focus directive