# Ensure pane where search buttons are clicked is focused before dispatching action \(\#24037\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 027fe1b4b5ea02d9b329299b2cbabbd5240c0370

Requested commit: 027fe1b4b5ea02d9b329299b2cbabbd5240c0370

Commit: 027fe1b4b5ea02d9b329299b2cbabbd5240c0370

Tree: d320577922aeef87bc6a2bef828d81c3863dfedc

Author: Ben Kunkle

Committer: GitHub

## Message

```
Ensure pane where search buttons are clicked is focused before dispatching action (#24037)

Closes #23906

Note: Changes the focused pane when search UI is interacted with on an
unfocused pane rather than leaving the focused pane unchanged as
focusing on click is more likely to be the expected behavior

Release Notes:

- Fixes an issue with search actions so that they now execute on the
clicked pane rather than the focused pane when using search UI in
multiple panes
```

## Parents

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

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