Debugger: Auto-focus on textbox for go to address form (+ same for add/edit cheat form)

This commit is contained in:
Souryo 2016-11-14 21:00:50 -05:00
parent 98e6a83c15
commit 4b6d96834b
2 changed files with 12 additions and 0 deletions

View file

@ -20,6 +20,12 @@ namespace Mesen.GUI.Debugger
Entity = address; Entity = address;
AddBinding("Address", txtAddress); AddBinding("Address", txtAddress);
} }
protected override void OnShown(EventArgs e)
{
base.OnShown(e);
txtAddress.Focus();
}
} }
public class GoToAddress public class GoToAddress

View file

@ -48,6 +48,12 @@ namespace Mesen.GUI.Forms.Cheats
AddBinding("IsRelativeAddress", radRelativeAddress.Parent); AddBinding("IsRelativeAddress", radRelativeAddress.Parent);
} }
protected override void OnShown(EventArgs e)
{
base.OnShown(e);
txtCheatName.Focus();
}
protected override Type BindedType protected override Type BindedType
{ {
get { return typeof(CheatInfo); } get { return typeof(CheatInfo); }