Invoke pane's focus_in handler when pane is focused directly (#4129)

Fixes a bug where, when focusing a pane directly, it failed to transfer
focus to the active item.
This commit is contained in:
Max Brunsfeld 2024-01-18 10:26:03 -08:00 committed by GitHub
commit bfe76316f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -239,6 +239,7 @@ impl Pane {
let focus_handle = cx.focus_handle();
let subscriptions = vec![
cx.on_focus(&focus_handle, Pane::focus_in),
cx.on_focus_in(&focus_handle, Pane::focus_in),
cx.on_focus_out(&focus_handle, Pane::focus_out),
];