# Ensure focus_in and focus_out fire on window activation \(\#3993\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5dff458014eff348059461021f1e164049f1d186

Requested commit: 5dff458014eff348059461021f1e164049f1d186

Commit: 5dff458014eff348059461021f1e164049f1d186

Tree: 82051d8f99f5703eebb5dfa3a6141390eb03935f

Author: Conrad Irwin

Committer: GitHub

## Message

```
Ensure focus_in and focus_out fire on window activation (#3993)

Also:
- Rename cx.on_blur to cx.on_focus_lost
- Fix a bug where notify calls in focus handlers were ignored
- Fix a bug where vim would get stuck in the wrong mode when switching
  windows

Release Notes:

- (preview only) vim: fix switching between multiple windows
```

## Parents

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

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

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