private void FindText_KeyDown(object sender, KeyEventArgs e)
{
if (this.currentTabIndex >= 0)
{
if (e.Key == Key.Enter)
{
this.FindNextStringOnPage(FindText.Text, (Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift)), false, false, false);
}
else
{
this.lastKeyWasEnter = false;
if (e.Key == Key.Escape)
{
this.tab[this.currentTabIndex].TextEditor.Select(0, 0);
this.tab[this.currentTabIndex].TextEditor.Focus();
this.currentSearchIndex = 0;
this.SetStatusText("");
}
}
}
}