1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 10:05:10 +00:00

Browser+LibWeb: Open link in new tab on Ctrl+Click :^)

This commit is contained in:
Andreas Kling 2020-04-24 14:43:56 +02:00
parent d5d8e87d56
commit 5c2bdbf27f
4 changed files with 5 additions and 5 deletions

View file

@ -151,7 +151,7 @@ int main(int argc, char* argv[])
open_page(path);
};
html_view.on_link_click = [&](const String& href, auto&) {
html_view.on_link_click = [&](const String& href, auto&, unsigned) {
char* current_path = strdup(history.current().characters());
char* dir_path = dirname(current_path);
char* path = realpath(String::format("%s/%s", dir_path, href.characters()).characters(), nullptr);