adjust check for focused text inputs