Restore focus when closing context menu
This commit is contained in:
parent
a5044ccbba
commit
82ddac8e7e
5 changed files with 41 additions and 15 deletions
|
@ -2407,7 +2407,7 @@ impl MutableAppContext {
|
|||
})
|
||||
}
|
||||
|
||||
fn focus(&mut self, window_id: usize, view_id: Option<usize>) {
|
||||
pub fn focus(&mut self, window_id: usize, view_id: Option<usize>) {
|
||||
if let Some(pending_focus_index) = self.pending_focus_index {
|
||||
self.pending_effects.remove(pending_focus_index);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue