Add onFocus event hook.
Fix Bootbox related bug.