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:
parent
fc26aefe81
commit
aef5d28828
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue