Proper handling of right click with multiple selection

This commit is contained in:
Jeremy Soller 2024-01-10 10:26:30 -07:00
parent 716991a302
commit ff87795db0
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
2 changed files with 37 additions and 34 deletions

View file

@ -644,9 +644,7 @@ impl Application for App {
tab.view(self.core())
.map(move |message| Message::TabMessage(entity, message)),
)
.on_press(move |_point_opt| {
Message::TabMessage(entity, tab::Message::Click(None, false))
});
.on_press(move |_point_opt| Message::TabMessage(entity, tab::Message::Click(None)));
if tab.context_menu.is_some() {
mouse_area = mouse_area
.on_right_press(move |_point_opt| Message::TabContextMenu(entity, None));