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

Applications: Map Alt+F4 to Quit in FileManager/ProcessManager/Terminal.

This commit is contained in:
Andreas Kling 2019-03-03 02:52:22 +01:00
parent 7c06431ff7
commit b0c673265a
6 changed files with 35 additions and 10 deletions

View file

@ -50,7 +50,7 @@ int main(int argc, char** argv)
auto menubar = make<GMenuBar>();
auto app_menu = make<GMenu>("ProcessManager");
app_menu->add_action(GAction::create("Quit", String(), [] (const GAction&) {
app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [] (const GAction&) {
GApplication::the().quit(0);
return;
}));