Debugger: Fixed bug that caused F10 key to not work properly in debugger window
This commit is contained in:
parent
df2766f1a1
commit
84a63e04dc
2 changed files with 9 additions and 8 deletions
|
@ -75,13 +75,6 @@ namespace Mesen.GUI.Forms
|
|||
{
|
||||
bool processed = false;
|
||||
OnProcessCmdKey?.Invoke(keyData, ref processed);
|
||||
|
||||
if(keyData == Keys.F10 || keyData == (Keys.F10 | Keys.Shift)) {
|
||||
//Prevent default Windows behavior on F10 / Shift+F10 presses, which causes issues
|
||||
//such as the Shift key not being processed as being released, etc.
|
||||
return true;
|
||||
}
|
||||
|
||||
return processed || base.ProcessCmdKey(ref msg, keyData);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,15 @@ namespace Mesen.GUI.Forms
|
|||
CursorManager.ReleaseMouse();
|
||||
}
|
||||
|
||||
return base.ProcessCmdKey(ref msg, keyData);
|
||||
bool result = base.ProcessCmdKey(ref msg, keyData);
|
||||
|
||||
if(keyData == Keys.F10 || keyData == (Keys.F10 | Keys.Shift)) {
|
||||
//Prevent default Windows behavior on F10 / Shift+F10 presses, which causes issues
|
||||
//such as the Shift key not being processed as being released, etc.
|
||||
return true;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
bool IMessageFilter.PreFilterMessage(ref Message m)
|
||||
|
|
Loading…
Add table
Reference in a new issue