From dded6e23ae1aabb2261c989371c2d3a5e5d963f0 Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Thu, 9 Nov 2017 16:05:19 -0600 Subject: [PATCH] Jump to mod details from recommendations (see #858) --- ConsoleUI/DependencyScreen.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ConsoleUI/DependencyScreen.cs b/ConsoleUI/DependencyScreen.cs index 7e91b4aadd..81f5852b01 100644 --- a/ConsoleUI/DependencyScreen.cs +++ b/ConsoleUI/DependencyScreen.cs @@ -57,6 +57,17 @@ public DependencyScreen(KSPManager mgr, ChangePlan cp) : base() return true; }); + dependencyList.AddTip("Enter", "Details"); + dependencyList.AddBinding(Keys.Enter, (object sender) => { + if (dependencyList.Selection != null) { + LaunchSubScreen(new ModInfoScreen( + manager, plan, + registry.LatestAvailable(dependencyList.Selection.identifier, manager.CurrentInstance.VersionCriteria()) + )); + } + return true; + }); + AddObject(dependencyList); AddTip("Esc", "Cancel");