Browse Source

When in Search-Text-Box and pressing enter the dialog used to close.

pull/26/merge
Tobias Ibounig 14 years ago committed by Siegfried Pammer
parent
commit
fdb0986ed9
  1. 5
      src/Main/Base/Project/Src/Gui/Dialogs/ReferenceDialog/GacReferencePanel.cs

5
src/Main/Base/Project/Src/Gui/Dialogs/ReferenceDialog/GacReferencePanel.cs

@ -104,6 +104,11 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -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);

Loading…
Cancel
Save