示例#1
0
 public static void RegisterHotkey(Hotkey hotkey)
 {
     hotkeys.Add(hotkey);
 }
示例#2
0
 public static void UnregisterHotkey(Hotkey hotkey)
 {
     hotkeys.RemoveAll(key => key.Equals(hotkey));
 }
示例#3
0
 public static void RegisterHotkey(Action action, Hotkey key)
 {
     key.Action = action;
     RegisterHotkey(key);
 }