When e.g. having an overlay atop a “parent” screen and the overlay needs to be moved, I select the overlay contents and move it. If any unlocked elements of the “parent” screen (with a lower “z-index” than the overlay) is encompassed in the selection, those are unintendedly moved as well.
Is there a keyboard shortcut or other means that prevents selection of invisible elements covered by other elements (other than locking “parent” elements before overlay is even added)?
I realize, that from a technical perspective it might be difficult to determine whether an element is visible for the user, but from a UX perspective such a feature makes perfect sense.