Fix setFocus typo and simplify the parent determination.
Fix setFocus typo and simplify the parent determination.

chrisghost/X-SlickGrid,Revionics/SlickGrid,chrisghost/X-SlickGrid,ddomingues/X-SlickGrid,dynamicaction/SlickGrid,dynamicaction/SlickGrid,ddomingues/X-SlickGrid,Revionics/SlickGrid