diff --git a/BannerLib.Input/InputSubModule.cs b/BannerLib.Input/InputSubModule.cs index 9fd015c..492b418 100644 --- a/BannerLib.Input/InputSubModule.cs +++ b/BannerLib.Input/InputSubModule.cs @@ -31,7 +31,7 @@ protected override void OnApplicationTick(float dt) foreach (var hotkey in m_hotKeys) { if (!hotkey.IsEnabled) continue; - if (!hotkey.Predicate()) continue; + if (!(hotkey.Predicate is null) && !hotkey.Predicate()) continue; if (hotkey.GameKey.PrimaryKey.InputKey.IsDown()) hotkey.IsDown?.Invoke(); if (hotkey.GameKey.PrimaryKey.InputKey.IsPressed())