git_ui: Add support for collapsing/expanding entries with your keyboard (#45002)

This PR adds support for collapsing/expanding Git entries with your
keyboard like you can inside the project panel and variable list.

I noticed there is a bug that selecting the next entry when you are on
the directory level will select a non-visible entry. Will fix that in
another PR, as it is not related to this feature implementation.

**Result**:


https://github.com/user-attachments/assets/912cc146-1e1c-485f-9b60-5ddc0a124696

Release Notes:

- Git panel: Add support for collapsing/expanding entries with your
keyboard.
3f11cbd62cRemco Smits committed on 12/16/2025, 5:51:58 PM· committed by GitHubparentbcebe76
4 files changedLine totals unavailable