# git_panel: Fix FocusChanges does nothing with no entries \(\#42553\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/28a0b826180eb7b772469b1c8e147971a0982e43)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 28a0b826180eb7b772469b1c8e147971a0982e43

Requested commit: 28a0b826180eb7b772469b1c8e147971a0982e43

Commit: 28a0b826180eb7b772469b1c8e147971a0982e43

Tree: 4d4872daa8f38a85df53ff9a2e2d44d80e3b54a5

Author: Xipeng Jin

Committer: GitHub

## Message

```
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.
```

## Parents

- [e2c95a8d842cf1715e3cc08419d4724abf6dc852](https://git.cafe/gitcafe/zed/commit/e2c95a8d842cf1715e3cc08419d4724abf6dc852?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/28a0b826180eb7b772469b1c8e147971a0982e43?format=markdown)
