diff --git a/src/Main/Base/Project/Src/Gui/Dialogs/ReferenceDialog/GacReferencePanel.cs b/src/Main/Base/Project/Src/Gui/Dialogs/ReferenceDialog/GacReferencePanel.cs index b93a47012f..61532515c6 100644 --- a/src/Main/Base/Project/Src/Gui/Dialogs/ReferenceDialog/GacReferencePanel.cs +++ b/src/Main/Base/Project/Src/Gui/Dialogs/ReferenceDialog/GacReferencePanel.cs @@ -104,6 +104,11 @@ namespace ICSharpCode.SharpDevelop.Gui filterTextBox = new TextBox { Width = 150, Dock = DockStyle.Right }; filterTextboxToolTip.SetToolTip(filterTextBox, "Search by type name"); filterTextBox.TextChanged += delegate { Search(); }; + + IButtonControl defaultButton = null; + filterTextBox.Enter += delegate { defaultButton = ((Form)selectDialog).AcceptButton; ((Form)selectDialog).AcceptButton = null; }; + filterTextBox.Leave += delegate { ((Form)selectDialog).AcceptButton = defaultButton; }; + upperPanel.Controls.Add(chooseSpecificVersionCheckBox); upperPanel.Controls.Add(filterTextBox);