git_panel: Fix FocusChanges does nothing with no entries (#42553)

Closes #31155

Release Notes:

- Ensure `git_panel::FocusChanges` bypasses the panel’s `Focusable`
logic and directly focuses the `ChangesList` handle so the command works
even when the repository has no entries.
- Keep the `Focusable` behavior from the commit 45b126a (which routes
empty panels to the commit editor) by handling this special-case action
rather than regressing the default focus experience.
This commit is contained in:
Xipeng Jin
2025-11-13 21:59:39 -05:00
committed by GitHub
parent e2c95a8d84
commit 28a0b82618
+1 -1
View File
@@ -745,7 +745,7 @@ impl GitPanel {
) {
self.select_first_entry_if_none(cx);
cx.focus_self(window);
self.focus_handle.focus(window);
cx.notify();
}