1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00

Browser: Add "next tab" and "previous tab" actions

Now you can switch between the open tabs with Ctrl+PgUp and Ctrl+PgDn
This commit is contained in:
Andreas Kling 2020-04-23 21:43:24 +02:00
parent 4087e3cfb9
commit 1b8b492258
3 changed files with 28 additions and 0 deletions

View file

@ -131,6 +131,14 @@ int main(int argc, char** argv)
create_new_tab();
};
window_actions.on_next_tab = [&] {
tab_widget.activate_next_tab();
};
window_actions.on_previous_tab = [&] {
tab_widget.activate_previous_tab();
};
create_new_tab();
return app.exec();