# Prevent default when mousing down on a button that responds to clicks \(\#3709\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1bb85c1b9a29793d22c0331dd7451e3786eeed85

Requested commit: 1bb85c1b9a29793d22c0331dd7451e3786eeed85

Commit: 1bb85c1b9a29793d22c0331dd7451e3786eeed85

Tree: 5d764d3b9b8848d51df89d42f32fb105b4c917d4

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Prevent default when mousing down on a button that responds to clicks (#3709)

This ensures that ancestors that track focus don't accidentally steal it
on mouse down, which was preventing the editor from deploying the code
actions menu.

Release Notes:

- N/A
```

## Parents

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

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

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