Commit e09ef34f authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Terminate process when pressing Delete

Matches what the old KSysguard does

BUG: 436416
FIXED-IN: 5.23.0


(cherry picked from commit e13a2bad)
parent d6d000dc
......@@ -89,6 +89,13 @@ Faces.SensorFace {
onSortNameChanged: root.config.sortColumn = sortName
sortOrder: root.config.sortDirection
onSortOrderChanged: root.config.sortDirection = sortOrder
Keys.onPressed: {
if (event.matches(StandardKey.Delete)) {
processHelper.sendSignalToSelection(Process.ProcessController.TerminateSignal);
event.accepted = true;
}
}
}
Kirigami.Separator {
......
......@@ -153,6 +153,13 @@ Faces.SensorFace {
enabledColumns: columnDialog.visibleColumns
columnDisplay: columnDialog.columnDisplay
Keys.onPressed: {
if (event.matches(StandardKey.Delete)) {
processHelper.sendSignalToSelection(Process.ProcessController.TerminateSignal);
event.accepted = true;
}
}
}
Menu {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment