Changed event type for "Find Next" button

This commit is contained in:
Alexander 2019-10-18 13:37:33 +03:00
parent 5b51fd26c8
commit 2f28645c46
2 changed files with 5 additions and 4 deletions

View file

@ -712,7 +712,7 @@ public void InitializeComponent()
this.searchFindNextButton.TabIndex = 17;
this.searchFindNextButton.Text = "Find Next";
this.searchFindNextButton.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.searchFindNextButton.Click += new System.EventHandler(this.SearchFindNextButton_Click);
this.searchFindNextButton.MouseUp += new System.Windows.Forms.MouseEventHandler(this.SearchFindNextButton_MouseUp);
//
// toolbarPanel
//

View file

@ -818,7 +818,7 @@ private void RichTextBox_KeyDown(object sender, KeyEventArgs e)
}
if (e.KeyCode == Keys.Enter & searchPanel.Visible & !string.IsNullOrEmpty(searchTextBox.Text))
{
SearchFindNextButton_Click(this, new EventArgs());
SearchFindNextButton_MouseUp(null, null);
e.Handled = e.SuppressKeyPress = true;
}
}
@ -1521,7 +1521,7 @@ private void SearchTextBox_KeyDown(object sender, KeyEventArgs e)
}
if (e.KeyCode == Keys.Enter & searchPanel.Visible & !string.IsNullOrEmpty(searchTextBox.Text))
{
SearchFindNextButton_Click(this, new EventArgs());
SearchFindNextButton_MouseUp(null, null);
e.Handled = e.SuppressKeyPress = true;
}
}
@ -1569,7 +1569,7 @@ private void FindText(string text, RichTextBoxFinds findOptions)
}
}
private void SearchFindNextButton_Click(object sender, EventArgs e)
private void SearchFindNextButton_MouseUp(object sender, MouseEventArgs e)
{
if ((!searchWholeWordCheckBox.Checked) & (!searchCaseSensitiveCheckBox.Checked))
{
@ -1741,6 +1741,7 @@ private void VariablesMainMenu_Click(object sender, EventArgs e)
Debug.WriteLine("EditorMenuStrip: " + contextMenu.Enabled);
#endif
}
#endregion