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
Notes: sideshowbarker 2024-07-19 06:44:50 +09:00

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");