mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:47:46 +00:00
Browser: Add Ctrl-<number> actions to changes tabs
It is now possible to quickly switch to specific tabs directly without having to 'search linearly'. Pressing Ctrl plus a number from 1 to 8 switches to the tab of that index. Pressing Ctrl-9 swithes to the last tab. This feature already exists in Firefox and Chrome.
This commit is contained in:
parent
1b7850f511
commit
3818840ee6
3 changed files with 28 additions and 0 deletions
|
@ -19,6 +19,7 @@ public:
|
|||
Function<void()> on_create_new_tab;
|
||||
Function<void()> on_next_tab;
|
||||
Function<void()> on_previous_tab;
|
||||
Vector<Function<void()>> on_tabs;
|
||||
Function<void()> on_about;
|
||||
Function<void(GUI::Action&)> on_show_bookmarks_bar;
|
||||
|
||||
|
@ -32,6 +33,7 @@ private:
|
|||
RefPtr<GUI::Action> m_create_new_tab_action;
|
||||
RefPtr<GUI::Action> m_next_tab_action;
|
||||
RefPtr<GUI::Action> m_previous_tab_action;
|
||||
NonnullRefPtrVector<GUI::Action> m_tab_actions;
|
||||
RefPtr<GUI::Action> m_about_action;
|
||||
RefPtr<GUI::Action> m_show_bookmarks_bar_action;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue