public bool Remove(HotKey hk) { return(hotKeys.Remove(hk)); }
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) }); } }