Hex Editor - pressing enter in the find box = click the find next button

This commit is contained in:
adelikat 2012-09-23 23:20:30 +00:00
parent 3280746e39
commit 80b73cab98
2 changed files with 9 additions and 0 deletions

View File

@ -42,6 +42,7 @@
this.FindBox.Name = "FindBox";
this.FindBox.Size = new System.Drawing.Size(156, 20);
this.FindBox.TabIndex = 0;
this.FindBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FindBox_KeyDown);
this.FindBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.FindBox_KeyPress);
//
// Find_Prev

View File

@ -110,5 +110,13 @@ namespace BizHawk.MultiClient
{
ChangeCasing();
}
private void FindBox_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyData == Keys.Enter)
{
Global.MainForm.HexEditor1.FindNext(GetFindBoxChars());
}
}
}
}