mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 18:46:49 +00:00
Ensure focus is transferred when opening the first item in pane
This commit is contained in:
parent
b7091dd5e2
commit
0cae3e0ac0
1 changed files with 2 additions and 2 deletions
|
@ -280,11 +280,11 @@ impl Pane {
|
|||
let prev_active_item_ix = mem::replace(&mut self.active_item_index, index);
|
||||
if prev_active_item_ix != self.active_item_index {
|
||||
self.item_views[prev_active_item_ix].1.deactivated(cx);
|
||||
}
|
||||
self.focus_active_item(cx);
|
||||
cx.notify();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn activate_prev_item(&mut self, cx: &mut ViewContext<Self>) {
|
||||
let mut index = self.active_item_index;
|
||||
|
|
Loading…
Reference in a new issue