Start getting pane focus code ported

This commit is contained in:
Julia 2023-11-30 10:47:28 -05:00
parent d551b41aae
commit 591299b4c7
3 changed files with 93 additions and 27 deletions

View file

@ -289,6 +289,7 @@ impl<T: ToolbarItemView> ToolbarItemViewHandle for View<T> {
}
fn focus_changed(&mut self, pane_focused: bool, cx: &mut WindowContext) {
println!("focus changed, pane_focused: {pane_focused}");
self.update(cx, |this, cx| {
this.pane_focus_update(pane_focused, cx);
cx.notify();