From 2431ccbfcbd94cdf23ad0cd53f2e6e4861cab98a Mon Sep 17 00:00:00 2001 From: pHiney <4302241+pHiney@users.noreply.github.com> Date: Sun, 13 Aug 2023 16:51:37 +1000 Subject: [PATCH] Add Ctrl-M to the tree drop down to open manage trees dialog (#6269) * Add Ctrl-M to the tree drop down to open manage trees dialog * Add to help.txt --------- Co-authored-by: Hiney --- help.txt | 1 + src/Classes/TreeTab.lua | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/help.txt b/help.txt index 4fd76c56..cb1f3038 100644 --- a/help.txt +++ b/help.txt @@ -29,6 +29,7 @@ Ctrl + I Jump to import tab Ctrl + A Select all Ctrl + C Copy Ctrl + F Show find / search box (e.g. unique item / tree) +Ctrl + M Manage Trees (Tree tab only) Ctrl + N New build (in build selection menu) Ctrl + S Save build to file Ctrl + U Check for update diff --git a/src/Classes/TreeTab.lua b/src/Classes/TreeTab.lua index 87f43eb3..3b62b5eb 100644 --- a/src/Classes/TreeTab.lua +++ b/src/Classes/TreeTab.lua @@ -203,6 +203,8 @@ function TreeTabClass:Draw(viewPort, inputEvents) inputEvents[id] = nil elseif event.key == "f" and IsKeyDown("CTRL") then self:SelectControl(self.controls.treeSearch) + elseif event.key == "m" and IsKeyDown("CTRL") then + self:OpenSpecManagePopup() end end end @@ -249,7 +251,7 @@ function TreeTabClass:Draw(viewPort, inputEvents) t_insert(newSpecList, (spec.treeVersion ~= latestTreeVersion and ("["..treeVersions[spec.treeVersion].display.."] ") or "")..(spec.title or "Default")) end self.build.itemsTab.controls.specSelect:SetList(copyTable(newSpecList)) -- Update the passive tree dropdown control in itemsTab - t_insert(newSpecList, "Manage trees...") + t_insert(newSpecList, "Manage trees... (ctrl-m)") self.controls.specSelect:SetList(newSpecList) if not self.controls.treeSearch.hasFocus then