Ejemplo n.º 1
0
 public static void RegisterHotkey(Hotkey hotkey)
 {
     _hotkeys.Add(hotkey);
 }
Ejemplo n.º 2
0
 public static void UnregisterHotkey(Hotkey hotkey)
 {
     _hotkeys.RemoveAll(key => key.Equals(hotkey));
 }
Ejemplo n.º 3
0
 public static void RegisterHotkey(Action action, Hotkey key)
 {
     key.Action = action;
     RegisterHotkey(key);
 }