# project_panel: Fix preview tabs disabling focusing files after just one click in project panel \(\#42836\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 175162af4f53e177511e83d24067c3bbc438c04d

Requested commit: 175162af4f53e177511e83d24067c3bbc438c04d

Commit: 175162af4f53e177511e83d24067c3bbc438c04d

Tree: 026c17dceac6cc3784fb4c1186ac8fa8847eb7e1

Author: Serophots

Committer: GitHub

## Message

```
project_panel: Fix preview tabs disabling focusing files after just one click in project panel (#42836)

Closes #41484

With preview tabs disabled, when you click once on a file in the project
panel, rather than focusing on that file, zed will incorrectly focus on
the text editor panel. This means if you click on a file to focus it,
then follow up with a keybind like backspace to delete that file, it
doesn't delete that file because the backspace goes through to the text
editor instead.

Incorrect behaviour seen here:


https://github.com/user-attachments/assets/8c2dea90-bd90-4507-8ba6-344be348f151



Release Notes:

- Fixed improper UI focus behaviour in the project panel when preview
tabs are disabled
```

## Parents

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

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