Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorDavid Karlaš <david.karlas@microsoft.com>2019-06-05 11:24:03 +0300
committerDavid Karlaš <david.karlas@microsoft.com>2019-06-05 11:53:10 +0300
commit7a5867ac2c134fe6d73b96703869c0b50bccd4e8 (patch)
treebec2ad03eae62e1f52e853df56a57010d8b1909f /main
parent794d45c338a9372744c70849e5f7081100929b64 (diff)
Fix 901424: After click in the document navigation bar and select any method next click on the Editor doesn't work
Diffstat (limited to 'main')
-rw-r--r--main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpPathedDocumentExtension.DataProvider.cs3
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components/DropDownBoxListWindow.cs2
2 files changed, 2 insertions, 3 deletions
diff --git a/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpPathedDocumentExtension.DataProvider.cs b/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpPathedDocumentExtension.DataProvider.cs
index aa1c806bf2..5c02589975 100644
--- a/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpPathedDocumentExtension.DataProvider.cs
+++ b/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpPathedDocumentExtension.DataProvider.cs
@@ -244,9 +244,6 @@ namespace MonoDevelop.CSharp
//FIXME: use the snapshot that the nodes came from
var point = new VirtualSnapshotPoint (editor.TextBuffer.CurrentSnapshot, offset);
EditorOperations.SelectAndMoveCaret (point, point, TextSelectionMode.Stream, EnsureSpanVisibleOptions.AlwaysCenter);
-
- // TOTEST
- // editor.Properties.GetProperty<DocumentController> (typeof (DocumentController)).GrabFocus ();
}
public int IconCount {
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/DropDownBoxListWindow.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/DropDownBoxListWindow.cs
index d8594f9307..9eb058dc89 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/DropDownBoxListWindow.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/DropDownBoxListWindow.cs
@@ -92,6 +92,8 @@ namespace MonoDevelop.Components
var sel = list.Selection;
if (sel >= 0 && sel < DataProvider.IconCount) {
DataProvider.ActivateItem (sel);
+ // This is so parent window of dropdown regains focus
+ TransientFor.Present ();
Destroy ();
}
};