首页 > 代码库 > C# 依据KeyEventArgs与组合键字符串相互转换

C# 依据KeyEventArgs与组合键字符串相互转换

   /// 快捷键相关的类
    /// </summary>
    public static class HotKeyInfo
    {
        /// <summary>
        /// 依据KeyEventArgs生成组合键字符串
        /// </summary>
        /// <param name="e"></param>
        /// <returns></returns>
        public static string GetStringByKey(KeyEventArgs e)
        {
            if (e.KeyValue =http://www.mamicode.com/= 16)>

C# 依据KeyEventArgs与组合键字符串相互转换