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;
AddBinding("Address", txtAddress);
}
protected override void OnShown(EventArgs e)
{
base.OnShown(e);
txtAddress.Focus();
}
}
public class GoToAddress

View File

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