From feef304423a01d3f02ae6d29dc1bc51330fd0092 Mon Sep 17 00:00:00 2001 From: James R Date: Sun, 14 Mar 2021 08:26:09 -0700 Subject: [PATCH] Ignore Keys.None event (#537) Such an event invokes every unbound action. --- Source/Core/Windows/MainForm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Windows/MainForm.cs b/Source/Core/Windows/MainForm.cs index d9a2bcb6..d524ecd9 100755 --- a/Source/Core/Windows/MainForm.cs +++ b/Source/Core/Windows/MainForm.cs @@ -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 } -} \ No newline at end of file +}