Ignore Keys.None event (#537)

Such an event invokes every unbound action.
This commit is contained in:
James R 2021-03-14 08:26:09 -07:00 committed by GitHub
parent 5addd6508c
commit feef304423
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1414,7 +1414,7 @@ namespace CodeImp.DoomBuilder.Windows
if(ctrl) mod |= (int)Keys.Control;
// Don't process any keys when they are meant for other input controls
if((ActiveControl == null) || (ActiveControl == display))
if((e.KeyData != Keys.None) && ((ActiveControl == null) || (ActiveControl == display)))
{
// Invoke any actions associated with this key
General.Actions.UpdateModifiers(mod);
@ -4648,4 +4648,4 @@ namespace CodeImp.DoomBuilder.Windows
#endregion
}
}
}