Ensure focus_in and focus_out fire on window activation
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
This commit is contained in:
parent
0daa2bf7f4
commit
1bf33b4b61
3 changed files with 80 additions and 25 deletions
|
@ -537,7 +537,7 @@ impl Workspace {
|
|||
})
|
||||
.detach();
|
||||
|
||||
cx.on_blur_window(|this, cx| {
|
||||
cx.on_focus_lost(|this, cx| {
|
||||
let focus_handle = this.focus_handle(cx);
|
||||
cx.focus(&focus_handle);
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue