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
5dff458014Conrad Irwin committed on 1/10/2024, 5:00:07 PM· committed by GitHubparentsf8e4fd072c022f
6 files changedLine totals unavailable