# Fix moving focus to docks when navigating via keybinds \(\#7221\) · gitcafe/zed

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

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

Visibility: public

Requested revision: adc7cfb0d3a19e53d4df250cccb753d1248a2a63

Requested commit: adc7cfb0d3a19e53d4df250cccb753d1248a2a63

Commit: adc7cfb0d3a19e53d4df250cccb753d1248a2a63

Tree: 3f2da008748b202bd031453aa374e09a995669e0

Author: Thorsten Ball

Committer: GitHub

## Message

```
Fix moving focus to docks when navigating via keybinds (#7221)

This is a follow-up to #7141 and fixes the focus-switching to docks in
case they haven't been focused before.

We ran into issues when trying to focus a dock, that hasn't been focused
in the app's lifecycle: focus would only flip after the next re-render
(which could be triggered by moving the mouse, for example)

This changes the approach and uses the one we have for `toggle focus`
actions.

Release Notes:

- N/A

Co-authored-by: Piotr <piotr@zed.dev>
Co-authored-by: bennetbo <bennetbo@gmx.de>
```

## Parents

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

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