Using "a" hotkey in nested collapsible menus

I was noticing that the use of the “a” hotkey in the panels, to quickly fold and unfold, works great, until you hit a nested menu. I wonder if perhaps this was an overlooked design issue?

The issue is that my muscle memory is to be able to click a while hovering over these sub-menus, and have it expand that, but instead, the parent menu eats this keystroke, and collapses the whole area on me.

It feels sorta cumbersome.

This is simply a bug I think. You can report it on the tracker.