From 04119d66eedd936998d8f68d932a4249232ab217 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");