# Close modals when focus leaves · gitcafe/zed

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

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

Visibility: public

Requested revision: 62232060e6f029f0204cc159f0b3822ef5071a7a

Requested commit: 62232060e6f029f0204cc159f0b3822ef5071a7a

Commit: 62232060e6f029f0204cc159f0b3822ef5071a7a

Tree: 5f11f4d7b5bddbf64348df9d84aa52b6737dcfd8

Author: Conrad Irwin

Committer: Conrad Irwin

## Message

```
Close modals when focus leaves

This is more similar to zed1's behaviour, and allows us to work around
the difficulty in defining `on_mouse_down_out` for modals that have
overlays.

```

## Parents

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

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