Updating Hotkeys
How to update hotkeys at runtime
hkl.Update(hotkey1, new Hotkey(Keys.Control | Keys.Alt, Keys.T));Hotkey hotkey3 = new Hotkey(Keys.Control | Keys.Alt, Keys.T);
// To update our hotkey, simply pass the current hotkey with
// a 'ref' keyword to the variable and its replacement.
hkl.Update(ref hotkey3, new Hotkey(Keys.Alt, Keys.T);Hotkey hotkey1 = new Hotkey(Keys.Control | Keys.Alt, Keys.T);
Hotkey hotkey2 = new Hotkey(Keys.Alt, Keys.T);
// Once we reference the variable hotkey1, this will
// update the hotkey and listen for its key-presses.
hkl.Update(ref hotkey1, hotkey2);Last updated