Browse Source

SD2-704. The find next button is set to be the default button on the search and replace dialog.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1184 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 20 years ago
parent
commit
374b7737d2
  1. 3
      src/Main/Base/Project/Src/TextEditor/SearchAndReplace/Gui/SearchAndReplacePanel.cs

3
src/Main/Base/Project/Src/TextEditor/SearchAndReplace/Gui/SearchAndReplacePanel.cs

@ -47,6 +47,7 @@ namespace SearchAndReplace @@ -47,6 +47,7 @@ namespace SearchAndReplace
ControlDictionary["findNextButton"].Click += FindNextButtonClicked;
ControlDictionary["lookInBrowseButton"].Click += LookInBrowseButtonClicked;
((Form)Parent).AcceptButton = (Button)ControlDictionary["findNextButton"];
SetOptions();
RightToLeftConverter.ReConvertRecursive(this);
ResumeLayout(false);
@ -70,6 +71,7 @@ namespace SearchAndReplace @@ -70,6 +71,7 @@ namespace SearchAndReplace
{
WritebackOptions();
SearchReplaceManager.FindNext();
Focus();
}
void FindAllButtonClicked(object sender, EventArgs e)
@ -88,6 +90,7 @@ namespace SearchAndReplace @@ -88,6 +90,7 @@ namespace SearchAndReplace
{
WritebackOptions();
SearchReplaceManager.Replace();
Focus();
}
void WritebackOptions()

Loading…
Cancel
Save