Focus toggled elements when interacting with the sidebars
Also, restore focus on the workspace when there is no active item on the sidebar that was just toggled.
This commit is contained in:
@@ -49,7 +49,7 @@ impl Sidebar {
|
||||
if self.active_item_ix == Some(item_ix) {
|
||||
self.active_item_ix = None;
|
||||
} else {
|
||||
self.active_item_ix = Some(item_ix)
|
||||
self.active_item_ix = Some(item_ix);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user