mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +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
Notes:
sideshowbarker
2024-07-19 07:21:08 +09:00
Author: https://github.com/awesomekling
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