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
This commit is contained in:
commit
5dff458014
6 changed files with 91 additions and 26 deletions
|
@ -76,6 +76,10 @@ async fn test_basic_following(
|
|||
let (workspace_a, cx_a) = client_a.build_workspace(&project_a, cx_a);
|
||||
let (workspace_b, cx_b) = client_b.build_workspace(&project_b, cx_b);
|
||||
|
||||
cx_b.update(|cx| {
|
||||
assert!(cx.is_window_active());
|
||||
});
|
||||
|
||||
// Client A opens some editors.
|
||||
let pane_a = workspace_a.update(cx_a, |workspace, _| workspace.active_pane().clone());
|
||||
let editor_a1 = workspace_a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue