mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
Browser: Show the page title in the window title bar :^)
This commit is contained in:
parent
a8297657ab
commit
4173c77eb5
Notes:
sideshowbarker
2024-07-19 11:48:46 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4173c77eb50
1 changed files with 4 additions and 0 deletions
|
@ -61,6 +61,10 @@ int main(int argc, char** argv)
|
|||
html_widget->load(html_widget->document()->complete_url(url));
|
||||
};
|
||||
|
||||
html_widget->on_title_change = [&](auto& title) {
|
||||
window->set_title(String::format("%s - Browser", title.characters()));
|
||||
};
|
||||
|
||||
auto focus_location_box_action = GAction::create("Focus location box", { Mod_Ctrl, Key_L }, [&](auto&) {
|
||||
location_box->select_all();
|
||||
location_box->set_focus(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue