Keep layer selection when pressing next/previous frame key

sorry if this already is a feature that’s maybe turned off in preferences, I can’t seem to find it though.

So I’m doing some animation with masks across multiple layers, and to follow the mask I have to re-select each layer I’m working on after each frame. Not to be confused with the actual graphical selection but the layer selection, I’m trying to mass animate multiple layers at the same time.

I’m wondering if this is already a feature I can’t find, or I’m recommending it be added.

Could you specify what operations are you performing on layers with masks?