diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-23 21:36:17 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-23 21:36:17 +0200 |
commit | 312501f30917e8e22321a80fde294dd50a83012b (patch) | |
tree | efda9148c8a5de501ec56dd106bf3b80105e133d /Applications/Browser/Tab.h | |
parent | 476a4475e572b22128557f1d8a05bf6d948b56ac (diff) | |
download | serenity-312501f30917e8e22321a80fde294dd50a83012b.zip |
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.
Diffstat (limited to 'Applications/Browser/Tab.h')
-rw-r--r-- | Applications/Browser/Tab.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Applications/Browser/Tab.h b/Applications/Browser/Tab.h index c596b5afde..7c74c40560 100644 --- a/Applications/Browser/Tab.h +++ b/Applications/Browser/Tab.h @@ -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; } |