add hasfocus property and use obj.focus(false,200) to search box