UI: Fixed Mono issue with SelectionChangeComitted event

Event doesn't appear to fire properly via keyboard input on Mono
This commit is contained in:
Souryo 2017-10-20 18:34:24 -04:00
parent fcc613811f
commit abaf524e99
6 changed files with 6 additions and 6 deletions

View file

@ -407,7 +407,7 @@
this.cboTrack.Size = new System.Drawing.Size(47, 21);
this.cboTrack.TabIndex = 8;
this.cboTrack.DropDown += new System.EventHandler(this.cboTrack_DropDown);
this.cboTrack.SelectionChangeCommitted += new System.EventHandler(this.cboTrack_SelectionChangeCommitted);
this.cboTrack.SelectedIndexChanged += new System.EventHandler(this.cboTrack_SelectedIndexChanged);
this.cboTrack.DropDownClosed += new System.EventHandler(this.cboTrack_DropDownClosed);
//
// lblTrackTotal

View file

@ -400,7 +400,7 @@ namespace Mesen.GUI.Controls
_disableShortcutKeys = false;
}
private void cboTrack_SelectionChangeCommitted(object sender, EventArgs e)
private void cboTrack_SelectedIndexChanged(object sender, EventArgs e)
{
int currentTrack = InteropEmu.NsfGetCurrentTrack();
if(currentTrack != cboTrack.SelectedIndex) {

View file

@ -221,7 +221,7 @@
this.cboChrSelection.Size = new System.Drawing.Size(150, 21);
this.cboChrSelection.TabIndex = 1;
this.cboChrSelection.DropDown += new System.EventHandler(this.cboChrSelection_DropDown);
this.cboChrSelection.SelectionChangeCommitted += new System.EventHandler(this.cboChrSelection_SelectionChangeCommitted);
this.cboChrSelection.SelectedIndexChanged += new System.EventHandler(this.cboChrSelection_SelectedIndexChanged);
//
// flpHighlight
//

View file

@ -208,7 +208,7 @@ namespace Mesen.GUI.Debugger.Controls
this.RefreshViewer();
}
private void cboChrSelection_SelectionChangeCommitted(object sender, EventArgs e)
private void cboChrSelection_SelectedIndexChanged(object sender, EventArgs e)
{
this._chrSelection = this.cboChrSelection.SelectedIndex;
this.GetData();

View file

@ -317,7 +317,7 @@ namespace Mesen.GUI.Forms.Config
this.cboAspectRatio.Name = "cboAspectRatio";
this.cboAspectRatio.Size = new System.Drawing.Size(197, 21);
this.cboAspectRatio.TabIndex = 16;
this.cboAspectRatio.SelectionChangeCommitted += new System.EventHandler(this.cboAspectRatio_SelectionChangeCommitted);
this.cboAspectRatio.SelectedIndexChanged += new System.EventHandler(this.cboAspectRatio_SelectedIndexChanged);
//
// lblCustomRatio
//

View file

@ -374,7 +374,7 @@ namespace Mesen.GUI.Forms.Config
}
}
private void cboAspectRatio_SelectionChangeCommitted(object sender, EventArgs e)
private void cboAspectRatio_SelectedIndexChanged(object sender, EventArgs e)
{
UpdateCustomRatioVisibility();
}