Support back/forward mouse buttons
This commit is contained in:
parent
d79349efaf
commit
88089fecb4
1 changed files with 6 additions and 0 deletions
|
|
@ -891,6 +891,12 @@ impl Application for App {
|
||||||
)
|
)
|
||||||
.on_press(move |_point_opt| {
|
.on_press(move |_point_opt| {
|
||||||
Message::TabMessage(Some(entity), tab::Message::Click(None))
|
Message::TabMessage(Some(entity), tab::Message::Click(None))
|
||||||
|
})
|
||||||
|
.on_back_press(move |_point_opt| {
|
||||||
|
Message::TabMessage(None, tab::Message::GoPrevious)
|
||||||
|
})
|
||||||
|
.on_forward_press(move |_point_opt| {
|
||||||
|
Message::TabMessage(None, tab::Message::GoNext)
|
||||||
});
|
});
|
||||||
if tab.context_menu.is_some() {
|
if tab.context_menu.is_some() {
|
||||||
mouse_area = mouse_area
|
mouse_area = mouse_area
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue