Skip to content

Commit

Permalink
Ensure external browser docs are shown on modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Feb 29, 2024
1 parent 362bc1d commit 794dbff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bonsai.Editor/EditorForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2337,10 +2337,10 @@ private async Task OpenDocumentationAsync(string assemblyName, string uid)

try
{
var showExternal = ModifierKeys.HasFlag(Keys.Control);
var editorControl = selectionModel.SelectedView.EditorControl;
var url = await documentationProvider.GetDocumentationAsync(assemblyName, uid);
if (!ModifierKeys.HasFlag(Keys.Control) &&
editorControl.AnnotationPanel.HasWebView)
if (!showExternal && editorControl.AnnotationPanel.HasWebView)
{
editorControl.AnnotationPanel.Navigate(url.AbsoluteUri);
var nameSeparator = uid.LastIndexOf(ExpressionHelper.MemberSeparator);
Expand Down

0 comments on commit 794dbff

Please sign in to comment.