Debugger: Focus on address field when opening breakpoint window
This commit is contained in:
parent
f35cef97b0
commit
5d1d2d93b4
1 changed files with 12 additions and 2 deletions
|
@ -70,9 +70,9 @@ namespace Mesen.GUI.Debugger
|
||||||
this.toolTip.SetToolTip(this.picHelp, frmBreakpoint.GetConditionTooltip(false));
|
this.toolTip.SetToolTip(this.picHelp, frmBreakpoint.GetConditionTooltip(false));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnLoad(EventArgs e)
|
protected override void OnShown(EventArgs e)
|
||||||
{
|
{
|
||||||
base.OnLoad(e);
|
base.OnShown(e);
|
||||||
|
|
||||||
Breakpoint bp = (Breakpoint)this.Entity;
|
Breakpoint bp = (Breakpoint)this.Entity;
|
||||||
if(!BreakpointManager.Breakpoints.Contains(bp)) {
|
if(!BreakpointManager.Breakpoints.Contains(bp)) {
|
||||||
|
@ -94,6 +94,16 @@ namespace Mesen.GUI.Debugger
|
||||||
txtFrom.Text = "";
|
txtFrom.Text = "";
|
||||||
txtTo.Text = "";
|
txtTo.Text = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(bp.AddressType == BreakpointAddressType.AddressRange) {
|
||||||
|
txtFrom.Focus();
|
||||||
|
txtFrom.SelectionStart = 0;
|
||||||
|
txtFrom.SelectionLength = 0;
|
||||||
|
} else {
|
||||||
|
txtAddress.Focus();
|
||||||
|
txtAddress.SelectionStart = 0;
|
||||||
|
txtAddress.SelectionLength = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetConditionTooltip(bool forWatch)
|
public static string GetConditionTooltip(bool forWatch)
|
||||||
|
|
Loading…
Add table
Reference in a new issue