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
commit 1b8b492258
Notes: sideshowbarker 2024-07-19 07:21:08 +09:00
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();