From 3ca8994e331ae42a8d0bdec32c88e4a3ab46040a Mon Sep 17 00:00:00 2001 From: Barry Van Deerlin Date: Mon, 29 Dec 2025 23:58:11 -0800 Subject: [PATCH] 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. --- src/btop_input.cpp | 4 ++-- src/btop_menu.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/btop_input.cpp b/src/btop_input.cpp index e4c8c1c..ab0c3f1 100644 --- a/src/btop_input.cpp +++ b/src/btop_input.cpp @@ -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)) { diff --git a/src/btop_menu.cpp b/src/btop_menu.cpp index 45dc07f..c4bed91 100644 --- a/src/btop_menu.cpp +++ b/src/btop_menu.cpp @@ -185,7 +185,7 @@ namespace Menu { {"Up, Down", "Select in process list."}, {"Enter", "Show detailed information for selected process."}, {"Spacebar", "Expand/collapse the selected process in tree view."}, - {"u", "Expand/collapse the selected process' children."}, + {"C", "Expand/collapse the selected process' children."}, {"Pg Up, Pg Down", "Jump 1 page in process list."}, {"Home, End", "Jump to first or last page in process list."}, {"Left, Right", "Select previous/next sorting column."},