mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Pass link target to HtmlView's on_link_click callback
This commit is contained in:
parent
95b51e857d
commit
061205b3b3
Notes:
sideshowbarker
2024-07-19 07:20:47 +09:00
Author: https://github.com/linusg
Commit: 061205b3b3
Pull-request: https://github.com/SerenityOS/serenity/pull/1939
5 changed files with 5 additions and 4 deletions
|
@ -238,7 +238,7 @@ void HtmlView::mousedown_event(GUI::MouseEvent& event)
|
|||
run_javascript_url(link->href());
|
||||
} else {
|
||||
if (on_link_click)
|
||||
on_link_click(link->href());
|
||||
on_link_click(link->href(), link->target());
|
||||
}
|
||||
} else {
|
||||
if (event.button() == GUI::MouseButton::Left) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue