UI: Fixed keyboard focus issue with menus & toolbars
This commit is contained in:
parent
85d82049f7
commit
b578718355
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ namespace Mesen.GUI.Controls
|
|||
protected override void WndProc(ref Message m)
|
||||
{
|
||||
if(m.Msg == WM_MOUSEACTIVATE && this.CanFocus && !this.Focused) {
|
||||
this.Focus();
|
||||
this.FindForm()?.Focus();
|
||||
}
|
||||
base.WndProc(ref m);
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace Mesen.GUI.Controls
|
|||
protected override void WndProc(ref Message m)
|
||||
{
|
||||
if(m.Msg == WM_MOUSEACTIVATE && this.CanFocus && !this.Focused) {
|
||||
this.Focus();
|
||||
this.FindForm()?.Focus();
|
||||
}
|
||||
base.WndProc(ref m);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue