Added support for input focus.