diff --git a/SightKeeper.Avalonia/Setup/HotKeysBootstrapper.cs b/SightKeeper.Avalonia/Setup/HotKeysBootstrapper.cs index 3ff76d04..ebbcc55d 100644 --- a/SightKeeper.Avalonia/Setup/HotKeysBootstrapper.cs +++ b/SightKeeper.Avalonia/Setup/HotKeysBootstrapper.cs @@ -15,10 +15,11 @@ public static void Setup(ContainerBuilder builder) hook.RunAsync(); builder.RegisterInstance(hook).As(); SharpHookKeyboardKeyManager keyboardManager = new(hook); - builder.RegisterInstance(keyboardManager).As>(); + KeyManagerFilter keyboardFilter = new(keyboardManager); + builder.RegisterInstance(keyboardFilter).As>(); SharpHookMouseButtonsManager mouseButtonsManager = new(hook); builder.RegisterInstance(mouseButtonsManager).As>(); - AggregateKeyManager aggregateKeyManager = new([keyboardManager, mouseButtonsManager]); + AggregateKeyManager aggregateKeyManager = new([keyboardFilter, mouseButtonsManager]); builder.RegisterInstance(aggregateKeyManager).As(); builder.RegisterType().SingleInstance(); builder.RegisterType().SingleInstance();