Doing focus on any element can be easily done by clicking the mouse on the required element. In selenium we can send some empty key to a element to focus.
WebElement myelement = driver.findElement(By.id("element-id"));
//Send empty message to element for set focus on element
myelement.sendKeys(""); 