key search: hide parent if all children of a level were hidden