summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-03 02:52:22 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-03 02:52:22 +0100
commitb0c673265a73bcb5719986be589dfb10fee0ce22 (patch)
treea22bdff06fd5baa1cd434a8428957a754dcc4632 /Applications
parent7c06431ff7682b42c9e91a8ea27f54f73c7c28f8 (diff)
downloadserenity-b0c673265a73bcb5719986be589dfb10fee0ce22.zip
Applications: Map Alt+F4 to Quit in FileManager/ProcessManager/Terminal.
Diffstat (limited to 'Applications')
-rw-r--r--Applications/FileManager/main.cpp2
-rw-r--r--Applications/ProcessManager/main.cpp2
-rw-r--r--Applications/Terminal/main.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/Applications/FileManager/main.cpp b/Applications/FileManager/main.cpp
index 3e166b0661..a3a9eafed3 100644
--- a/Applications/FileManager/main.cpp
+++ b/Applications/FileManager/main.cpp
@@ -64,7 +64,7 @@ int main(int argc, char** argv)
auto menubar = make<GMenuBar>();
auto app_menu = make<GMenu>("FileManager");
- 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;
}));
diff --git a/Applications/ProcessManager/main.cpp b/Applications/ProcessManager/main.cpp
index c2d6c15df4..390af60790 100644
--- a/Applications/ProcessManager/main.cpp
+++ b/Applications/ProcessManager/main.cpp
@@ -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;
}));
diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp
index 5d77272c1e..6bb0482efd 100644
--- a/Applications/Terminal/main.cpp
+++ b/Applications/Terminal/main.cpp
@@ -100,7 +100,7 @@ int main(int argc, char** argv)
auto menubar = make<GMenuBar>();
auto app_menu = make<GMenu>("Terminal");
- app_menu->add_action(GAction::create("Quit", String(), [] (const GAction&) {
+ app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [] (const GAction&) {
dbgprintf("Terminal: Quit menu activated!\n");
GApplication::the().quit(0);
return;