Reassign tree-children-toggle keybind

the tree-children-toggle feature introduced in f8b4217 from PR #1274
was using the "u" key as a binding.

This conflicts with pause using the "u" key now.

Since the "u" key was chosen without any real reason for the
tree-children-toggle feature. It will be changed to "C" and
"u" can safely be used for pause.
This commit is contained in:
Barry Van Deerlin
2025-12-29 23:58:11 -08:00
parent 6c4f019953
commit 3ca8994e33
2 changed files with 3 additions and 3 deletions

View File

@@ -451,12 +451,12 @@ namespace Input {
}
}
}
else if (is_in(key, "+", "-", "space", "u") and Config::getB("proc_tree") and Config::getI("proc_selected") > 0) {
else if (is_in(key, "+", "-", "space", "C") and Config::getB("proc_tree") and Config::getI("proc_selected") > 0) {
atomic_wait(Runner::active);
auto& pid = Config::getI("selected_pid");
if (key == "+" or key == "space") Proc::expand = pid;
if (key == "-" or key == "space") Proc::collapse = pid;
if (key == "u") Proc::toggle_children = pid;
if (key == "C") Proc::toggle_children = pid;
no_update = false;
}
else if (is_in(key, "t", kill_key) and (Config::getB("show_detailed") or Config::getI("selected_pid") > 0)) {