From 794dbff15ab00743439492b1f36f326eb501bbc1 Mon Sep 17 00:00:00 2001 From: glopesdev Date: Thu, 29 Feb 2024 16:55:47 +0000 Subject: [PATCH] Ensure external browser docs are shown on modifier --- Bonsai.Editor/EditorForm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bonsai.Editor/EditorForm.cs b/Bonsai.Editor/EditorForm.cs index ab9e1d0f..3f2d9d75 100644 --- a/Bonsai.Editor/EditorForm.cs +++ b/Bonsai.Editor/EditorForm.cs @@ -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);