Mantis #6198: SetFocus called without check for CanFocus