public HotkeyModel GetRegistedHotkey(string hotkeyName) { if (RegistedHotKey.ContainsKey(hotkeyName)) { return(RegistedHotKey[hotkeyName]); } return(null); }
public void UnregistHotkey(string hotkeyName) { if (RegistedHotKey.ContainsKey(hotkeyName)) { RegistedHotKey.Remove(hotkeyName); HotkeyRegister.UnRegist(hotkeyName); } if (RegistedHotkeyAction.ContainsKey(hotkeyName)) { RegistedHotkeyAction.Remove(hotkeyName); } }