Suspending/Resuming Hotkeys
Suspending and resuming hotkeys at runtime
Hotkey hotkey1 = new Hotkey(Keys.Control | Keys.Shift, Keys.E);
Hotkey hotkey2 = new Hotkey(Keys.Alt, Keys.X);
// Suspend all registered hotkeys.
hkl.Suspend();
// Update hotkeys with newer keys.
hkl.Update(ref hotkey1, new Hotkey(Keys.Alt, Keys.X));
hkl.Update(ref hotkey2, new Hotkey(Keys.Shift, Keys.PrintScreen));
// Resume listening to the hotkeys.
hkl.Resume();Last updated