Different options for setFocus

Let users to disable setFocus option if they want it.
Optionally set a function instead or finally leave as it was.