Пример #1
0
 public bool Remove(HotKey hk)
 {
     return(hotKeys.Remove(hk));
 }
Пример #2
0
 private void KeyDownHandler(object sender, KeyEventArgs e)
 {
     if (_recording && (buffer.Count == 0 || !HotKey.ParseKey(e.KeyCode).Equals(HotKey.ParseKey(buffer[buffer.Count - 1].KeyCode))))
     {
         buffer.Add(e);
         OnKeyRecorded(new HotKeyRecordedArgs()
         {
             hotKey = new HotKey(buffer)
         });
     }
 }