Ensure that sidebar toggle button works, regardless of focus (#52045)

Previously, the sidebar toggle worked via an action, which is dependent
on what is focused. I changed it to directly call a method.

Release Notes:

- N/A
268f1d2917Max Brunsfeld committed on 3/20/2026, 10:52:11 PM· committed by GitHubparent3ee2f5b
2 files changedLine totals unavailable