Focus followed items when they become active if the pane is active
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
edc038a1cf
commit
4f27049305
3 changed files with 5 additions and 3 deletions
|
@ -485,7 +485,7 @@ impl Pane {
|
|||
cx.notify();
|
||||
}
|
||||
|
||||
fn focus_active_item(&mut self, cx: &mut ViewContext<Self>) {
|
||||
pub fn focus_active_item(&mut self, cx: &mut ViewContext<Self>) {
|
||||
if let Some(active_item) = self.active_item() {
|
||||
cx.focus(active_item);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue