mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:57:35 +00:00
Browser: Add "Close tab" action (Ctrl+W) :^)
Note that this is a little bit unreliable with the keyboard shortcut since LibGUI can get confused about which Action it's supposed to use as each Browser::Tab has its own "close tab" action. This will need to be fixed in LibGUI.
This commit is contained in:
parent
476a4475e5
commit
312501f309
3 changed files with 12 additions and 0 deletions
|
@ -44,6 +44,7 @@ public:
|
|||
void did_become_active();
|
||||
|
||||
Function<void(String)> on_title_change;
|
||||
Function<void(Tab&)> on_tab_close_request;
|
||||
|
||||
const String& title() const { return m_title; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue