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

Loading…
Cancel
Save