Selecting a different object hides all keyframes in timeline?
This is a feature. You only see keyframes for the selected object in the timeline. If you want to see all your keyframes, I would use the Dope Sheet.

The arrow icon only shows the key frame from the selected object.
The ghost icon shows keyframes form hidden objects.
The life saver :P(I think that the official name?) shows broken drivers.