mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Browser: Allow opening URLs by dropping them on the HtmlView :^)
This commit is contained in:
parent
fc26aefe81
commit
aef5d28828
Notes:
sideshowbarker
2024-07-19 06:44:50 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/aef5d28828a
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…
Reference in a new issue