1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:57:35 +00:00

Browser: Allow opening URLs by dropping them on the HtmlView :^)

This commit is contained in:
Andreas Kling 2020-05-10 21:04:37 +02:00
parent fc26aefe81
commit aef5d28828

View file

@ -207,6 +207,10 @@ Tab::Tab()
m_statusbar->set_text(href);
};
m_html_widget->on_url_drop = [this](auto& url) {
m_html_widget->load(url);
};
m_menubar = GUI::MenuBar::construct();
auto& app_menu = m_menubar->add_menu("Browser");