mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
SystemMonitor: Add Delete as alternate shortcut for killing a process
This matches behaviour of other "system monitors", like Windows's Task Manager
This commit is contained in:
parent
f19cb6bb22
commit
7f7db7dbec
Notes:
sideshowbarker
2024-07-18 01:12:56 +09:00
Author: https://github.com/sppmacd
Commit: 7f7db7dbec
Pull-request: https://github.com/SerenityOS/serenity/pull/10881
Reviewed-by: https://github.com/linusg ✅
Reviewed-by: https://github.com/sw1tchbl4d3r
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue