gmamaladze / globalmousekeyhook

This library allows you to tap keyboard and mouse, detect and record their activity even when an application is inactive and runs in background.
MIT License
1.05k stars 257 forks source link

How to unset combination #115

Closed Nappyy closed 4 years ago

Nappyy commented 4 years ago

I'd like to unset a key combination.

Let's say I installed a combination [CTRL] + [K]: Hook.GlobalEvents().OnCombination(new Dictionary<Combination, Action> { {Combination.TriggeredBy(Keys.K).With(Keys.Control), () => { DoSomething(("K")); } } });

How can I unset this key combination at a later time?

jonjonsson commented 3 years ago

Hey Nappyy, did you figure this one out?