Quick Toggle collapse / expand Sidebar

Use case or problem

I know there is command and hotkey for toggle left/right sidebar.
But I think there is a simple way in some case.
e.g.

  1. I specify hotkey Alt+1 to show Outline1
  2. when Outline is shown, could use Alt+1 to close it (the sidebar)

Proposed solution

If hotkey of one pane in sidebar is specified, and the pane is shown, then use this hotkey to close the whole sidebar.

Current workaround (optional)

no

Related feature requests (optional)