/// <summary>Try to get command config from combined keys.</summary> /// <param name="key">The action key.</param> /// <returns>Is new command created</returns> private CmdCfg findCmdCfg(SButton key) { string combinedKey = ModeCfg.constructCmdKey(m_modify, key); if (m_keyMap == null || !m_keyMap.ContainsKey(combinedKey)) { return(null); } return(m_keyMap[combinedKey]); }
/// <summary>Try to get command config from combined keys.</summary> /// <param name="key">The action key.</param> /// <returns>Is new command created</returns> private CmdCfg findCmdCfg(SButton key) { string combinedKey = ModeCfg.constructCmdKey(m_curModifyButton, key); if (m_keyMap != null && m_keyMap.ContainsKey(combinedKey)) { return(m_keyMap[combinedKey]); } //check common mode later to make sure current mode can override common key bindings if (m_commonKeyMap != null && m_commonKeyMap.ContainsKey(combinedKey)) { return(m_commonKeyMap[combinedKey]); } return(null); }