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:
parent
4087e3cfb9
commit
1b8b492258
3 changed files with 28 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue