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
+1
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),
];