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

Ladybird: Focus the location editor when creating a new tab

This lets you start typing a new URL right after pressing Ctrl+T.
This commit is contained in:
Andreas Kling 2022-09-12 09:12:04 +02:00 committed by Andrew Kaster
parent 031005de2d
commit 27b9cd13ee
3 changed files with 13 additions and 5 deletions

View file

@ -212,6 +212,8 @@ void BrowserWindow::new_tab()
if (m_tabs_container->count() > 1)
m_tabs_bar->show();
tab_ptr->focus_location_editor();
}
void BrowserWindow::close_tab(int index)