UI: Fixed key select screen being shown behind current form when option to display window on top is enabled

This commit is contained in:
Sour 2020-02-01 12:39:12 -05:00
parent c519ec3ec8
commit 81dbafe405
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ namespace Mesen.GUI.Forms.Config
protected void btnMapping_Click(object sender, EventArgs e)
{
using(frmGetKey frm = new frmGetKey(true)) {
frm.ShowDialog();
((Form)frm).ShowDialog(this);
((Button)sender).Text = frm.ShortcutKey.ToString();
((Button)sender).Tag = frm.ShortcutKey.Key1;
}

View file

@ -219,7 +219,7 @@ namespace Mesen.GUI.Forms.Config
CheckConflicts();
} else if(e.Button == MouseButtons.Left) {
using(frmGetKey frm = new frmGetKey(false)) {
frm.ShowDialog();
((Form)frm).ShowDialog(this);
button.Value = frm.ShortcutKey.ToString();
button.Tag = frm.ShortcutKey;