How to Select a Category along with All its Documents

I have a button that uses “@Command( [ViewShowOnlySelected] )” in a view. Now this view is categorized and each category contains many documents in it. When I open the view collapsed, select a few categories and click this button, only the selected categories are displayed (this is good). However, when I click the twistie of a category, there is no document in it.

How do I select a category in a view along with all its documents by clicking only the category without having to expand the category and select all documents in it?

Thanks in advance.

Subject: I don’t believe there is a shortcut key to do that.

Subject: Thanks.