mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibWeb: Add hook when a link is middle clicked
This commit is contained in:
committed by
Andreas Kling
parent
9dbab2d05e
commit
0e048f3c4c
@@ -244,6 +244,9 @@ void HtmlView::mousedown_event(GUI::MouseEvent& event)
|
||||
} else if (event.button() == GUI::MouseButton::Right) {
|
||||
if (on_link_context_menu_request)
|
||||
on_link_context_menu_request(link->href(), event.position().translated(screen_relative_rect().location()));
|
||||
} else if (event.button() == GUI::MouseButton::Middle) {
|
||||
if (on_link_middle_click)
|
||||
on_link_middle_click(link->href());
|
||||
}
|
||||
} else {
|
||||
if (event.button() == GUI::MouseButton::Left) {
|
||||
|
||||
Reference in New Issue
Block a user