Skip to content

Commit

Permalink
Merge pull request #117 from TravelModellingGroup/dev-1.8
Browse files Browse the repository at this point in the history
Patch Documentation Lookup
  • Loading branch information
JamesVaughan authored Aug 19, 2021
2 parents c5c2720 + b430de7 commit 2f69681
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion Code/XTMF.Gui/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,6 @@ public void LaunchHelpWindow(ModelSystemStructureModel getHelpFor = null)
{
helpUI.SelectModuleContent(getHelpFor);
}

SetDisplayActive(helpUI, "Help");
Keyboard.Focus(helpUI);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,23 +478,18 @@ private void ModuleDisplay_PreviewKeyDown(object sender, KeyEventArgs e)
if (module != null)
{
e.Handled = true;
if (module.Type != null)
{
Process.Start(GetDocumetnationURL(module.Type));
}
MainWindow.Us.LaunchHelpWindow(item.BaseModel);
}

break;
case Key.D:
if (e.KeyboardDevice.IsKeyDown(Key.LeftCtrl))
{
ToggleDisableModule();
}

break;
}
}

}

/// <summary>
/// </summary>
/// <param name="sender"></param>
Expand Down

0 comments on commit 2f69681

Please sign in to comment.