/// <summary> /// Add an register a hotkey /// </summary> /// <param name="hkeyObj">hotkey object</param> public void AddHotKey(HotKeyObject hkeyObj) { if (!mHotKeyIDList.ContainsKey(hkeyObj.HotKeyID)) { short ID = GlobalAddAtom(hkeyObj.HotKeyID); mHotKeyIDList.Add(hkeyObj.HotKeyID, ID); mHotKeyList.Add(ID, hkeyObj); RegisterHotKey(mForm.Handle, (int)ID, (int)mHotKeyList[ID].Modifier, (int)mHotKeyList[ID].HotKey); } }
public HotKeyObject(HotKeyObject obj) { HotKey = obj.HotKey; Modifier = obj.Modifier; HotKeyID = obj.HotKeyID; }