just to clarify for 'the record', this patch fixes 2 bugs: first, don't try to focus an el unless it's visible and enabled. This fixes #3385, caused by trying to focus an el that is hidden. Second, if the target el is focusable, blur the currently-focused el (if any) before attempting to focus().