示例#1
0
        private void KListener_KeyUp(object sender, RawKeyEventArgs e)
        {
            string keysDown = string.Empty;
            if (keySet.Count != 0)
            {
                for (int i = 0; i < keySet.Count; i++)
                {
                    System.Windows.Input.Key key = keySet[i];
                    keysDown += (i != (keySet.Count - 1)) ? key.ToString() + "+" : key.ToString();
                }
                keySet.Clear();
            }

            GlobalKeyIntercepted(keysDown);
        }
示例#2
0
 private void KListener_KeyDown(object sender, RawKeyEventArgs e)
 {
     if (!keySet.Contains(e.Key))
     {
         keySet.Add(e.Key);
     }
 }