Add middle-click in breadcrumbs to open in new tab
This commit is contained in:
parent
808de5b355
commit
26423beaac
1 changed files with 7 additions and 0 deletions
|
|
@ -1940,6 +1940,13 @@ impl Tab {
|
|||
})
|
||||
}
|
||||
|
||||
let mouse_area = if let Location::Path(_) = &self.location {
|
||||
mouse_area
|
||||
.on_middle_press(move |_| Message::OpenInNewTab(ancestor.to_path_buf()))
|
||||
} else {
|
||||
mouse_area
|
||||
};
|
||||
|
||||
children.push(mouse_area.into());
|
||||
|
||||
if found_home {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue