Autofocus fix for firefox