# Wire up the middle mouse button to close tabs \(\#3714\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3e6b84a726d25df9dbcb8f298e2403b40b894771

Requested commit: 3e6b84a726d25df9dbcb8f298e2403b40b894771

Commit: 3e6b84a726d25df9dbcb8f298e2403b40b894771

Tree: 5254597549a3bf66ee7312250b262d491f3478e5

Author: Marshall Bowers

Committer: GitHub

## Message

```
Wire up the middle mouse button to close tabs (#3714)

This PR wires up the middle mouse button to close tabs.

Right now we're doing this using `on_mouse_down`, but we need a way in
GPUI2 to have an `on_click` for a mouse button other than the left one.

Release Notes:

- N/A
```

## Parents

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

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