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

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

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

Visibility: public

Requested revision: afbc61a344856ed43c7397533c706db5727e7cfa

Requested commit: afbc61a344856ed43c7397533c706db5727e7cfa

Commit: afbc61a344856ed43c7397533c706db5727e7cfa

Tree: 5d764d3b9b8848d51df89d42f32fb105b4c917d4

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Prevent default when mousing down on a button that responds to clicks

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.

```

## Parents

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

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