summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Action.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGUI/Action.cpp')
-rw-r--r--Libraries/LibGUI/Action.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibGUI/Action.cpp b/Libraries/LibGUI/Action.cpp
index fc98dce345..f71354fc5d 100644
--- a/Libraries/LibGUI/Action.cpp
+++ b/Libraries/LibGUI/Action.cpp
@@ -100,6 +100,11 @@ NonnullRefPtr<Action> make_quit_action(Function<void(Action&)> callback)
return Action::create("Quit", { Mod_Alt, Key_F4 }, move(callback));
}
+NonnullRefPtr<Action> make_help_action(Function<void(Action&)> callback, Core::Object* parent)
+{
+ return Action::create("Contents", { Mod_None, Key_F1 }, Gfx::Bitmap::load_from_file("/res/icons/16x16/app-help.png"), move(callback), parent);
+}
+
NonnullRefPtr<Action> make_go_back_action(Function<void(Action&)> callback, Core::Object* parent)
{
return Action::create("Go back", { Mod_Alt, Key_Left }, Gfx::Bitmap::load_from_file("/res/icons/16x16/go-back.png"), move(callback), parent);