Script Editor: added Quick Search panel.

Find and Replace window: added "Find Previous" button.
This commit is contained in:
MaxED 2014-12-10 13:15:23 +00:00
parent e6e74478db
commit 2f981476e0
15 changed files with 339 additions and 85 deletions

View file

@ -58,11 +58,13 @@ namespace CodeImp.DoomBuilder.Controls
public delegate void OpenScriptBrowserDelegate();
public delegate void OpenFindReplaceDelegate();
public delegate void FindNextDelegate();
public delegate void FindPreviousDelegate(); //mxd
public event ExplicitSaveTabDelegate OnExplicitSaveTab;
public event OpenScriptBrowserDelegate OnOpenScriptBrowser;
public event OpenFindReplaceDelegate OnOpenFindAndReplace;
public event FindNextDelegate OnFindNext;
public event FindPreviousDelegate OnFindPrevious; //mxd
#endregion
@ -784,10 +786,10 @@ namespace CodeImp.DoomBuilder.Controls
e.Handled = true;
}
// F2 for Keyword Help
// F2 for Find Previous (mxd)
else if((e.KeyCode == Keys.F2) && (e.Modifiers == Keys.None))
{
LaunchKeywordHelp();
if(OnFindPrevious != null) OnFindPrevious();
e.Handled = true;
}