Only set the focus to the active widget if it really is focusable