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:
commit
bfe76316f7
1 changed files with 1 additions and 0 deletions
|
@ -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),
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue