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,9 +280,9 @@ impl Pane {
|
||||||
let prev_active_item_ix = mem::replace(&mut self.active_item_index, index);
|
let prev_active_item_ix = mem::replace(&mut self.active_item_index, index);
|
||||||
if prev_active_item_ix != self.active_item_index {
|
if prev_active_item_ix != self.active_item_index {
|
||||||
self.item_views[prev_active_item_ix].1.deactivated(cx);
|
self.item_views[prev_active_item_ix].1.deactivated(cx);
|
||||||
self.focus_active_item(cx);
|
|
||||||
cx.notify();
|
|
||||||
}
|
}
|
||||||
|
self.focus_active_item(cx);
|
||||||
|
cx.notify();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue