From 7f7db7dbeca54bcf53b09af23e4a041a23c941c8 Mon Sep 17 00:00:00 2001 From: Maciej Date: Fri, 12 Nov 2021 17:18:50 +0100 Subject: [PATCH] SystemMonitor: Add Delete as alternate shortcut for killing a process This matches behaviour of other "system monitors", like Windows's Task Manager --- Userland/Applications/SystemMonitor/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/SystemMonitor/main.cpp b/Userland/Applications/SystemMonitor/main.cpp index a69eef3e2e..8fe40ae721 100644 --- a/Userland/Applications/SystemMonitor/main.cpp +++ b/Userland/Applications/SystemMonitor/main.cpp @@ -255,7 +255,7 @@ int main(int argc, char** argv) }; auto kill_action = GUI::Action::create( - "&Kill Process", { Mod_Ctrl, Key_K }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/kill.png").release_value_but_fixme_should_propagate_errors(), [&](const GUI::Action&) { + "&Kill Process", { Mod_Ctrl, Key_K }, { Key_Delete }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/kill.png").release_value_but_fixme_should_propagate_errors(), [&](const GUI::Action&) { pid_t pid = selected_id(ProcessModel::Column::PID); if (pid != -1) kill(pid, SIGKILL);