When activating an object from the 3D view or outliner, keep the newly selected object in object mode.