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 <pHiney@users.noreply.github.com>
This commit is contained in:
pHiney
2023-08-13 16:51:37 +10:00
committed by GitHub
parent 6b4f8d5627
commit 2431ccbfcb
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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