# Add workspace::FocusCenterPane \(\#46059\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 695e8a929bce65501366f3f1e30b3af63d3ac8fa

Requested commit: 695e8a929bce65501366f3f1e30b3af63d3ac8fa

Commit: 695e8a929bce65501366f3f1e30b3af63d3ac8fa

Tree: 85a6ade4d50e142b4b357001e3c4a9cc5d61f35f

Author: Josh P\.

Committer: GitHub

## Message

```
Add workspace::FocusCenterPane (#46059)

solution for #43004

Release Notes:

- Added workspace::FocusCenterPane


The `editor::ToggleFocus` action not working really drives me bonkers,
and it also doesn't really make sense, because it doesn't toggle
anything. it moves focus, but doesn't move focus back anywhere if you
run it again so 'ToggleFocus' seems misleading.

Here we have added an action that just moves focus to the most recent
center pane: `workspace::FocusCenterPane`

this action correctly moves the focus to the center pane from any dock,
even if the center pane is the project diff, branch diff, terminal, or
keymap editor, etc.

i'm not sure if this would be considered a 'replacement' for
`editor::ToggleFocus` but i do think this is probably more in line with
what most users would consider the expected behavior.
```

## Parents

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

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