1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 18:55:07 +00:00

LibGUI: Let's say that Alt+Home is the "go home" keyboard shortcut

This commit is contained in:
Andreas Kling 2019-10-08 21:45:29 +02:00
parent 9bb0374d7d
commit 75b5638f1c

View file

@ -73,7 +73,7 @@ NonnullRefPtr<GAction> make_go_forward_action(Function<void(GAction&)> callback,
NonnullRefPtr<GAction> make_go_home_action(Function<void(GAction&)> callback, GWidget* widget)
{
return GAction::create("Go home", GraphicsBitmap::load_from_file("/res/icons/16x16/go-home.png"), move(callback), widget);
return GAction::create("Go home", { Mod_Alt, Key_Home }, GraphicsBitmap::load_from_file("/res/icons/16x16/go-home.png"), move(callback), widget);
}
NonnullRefPtr<GAction> make_reload_action(Function<void(GAction&)> callback, GWidget* widget)