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

Browser: Switch focus to the web page after pressing return in URL bar

Instead of dropping focus entirely, which felt weird.
This commit is contained in:
Andreas Kling 2020-05-28 17:58:30 +02:00
parent eadce65e04
commit e026a50777

View file

@ -115,7 +115,7 @@ Tab::Tab()
} }
m_html_widget->load(location); m_html_widget->load(location);
m_location_box->set_focus(false); m_html_widget->set_focus(true);
}; };
m_location_box->add_custom_context_menu_action(GUI::Action::create("Paste & Go", [this](auto&) { m_location_box->add_custom_context_menu_action(GUI::Action::create("Paste & Go", [this](auto&) {