diff options
author | Maciej <sppmacd@pm.me> | 2021-11-12 17:18:50 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-11-13 11:14:20 +0000 |
commit | 7f7db7dbeca54bcf53b09af23e4a041a23c941c8 (patch) | |
tree | c6d61eeb1e09e1c91904b553f4d82c13de6ee7fa /Userland/Applications/SystemMonitor | |
parent | f19cb6bb223c58035762eddfb8b2b596cd9eac9f (diff) | |
download | serenity-7f7db7dbeca54bcf53b09af23e4a041a23c941c8.zip |
SystemMonitor: Add Delete as alternate shortcut for killing a process
This matches behaviour of other "system monitors", like Windows's Task
Manager
Diffstat (limited to 'Userland/Applications/SystemMonitor')
-rw-r--r-- | Userland/Applications/SystemMonitor/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |