resolve focus of input