Bend.MainWindow.FindText_KeyDown C# (CSharp) Method

FindText_KeyDown() private method

private FindText_KeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
sender object
e System.Windows.Input.KeyEventArgs
return void
        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("");
                    }
                }
            }
        }