Manually reset focus state after opening dialog