Пример #1
0
        public List <VirtualKeyCode> GetKeyStrokes()
        {
            List <VirtualKeyCode> modifierKeys = new List <VirtualKeyCode>();
            var strokes = rh.GetCommandKeystrokes(RegistryValue);

            if (strokes == null || strokes.Length == 0)
            {
                strokes = FallbackHotkey;
            }
            foreach (int stroke in strokes)
            {
                modifierKeys.Add((VirtualKeyCode)stroke);
            }

            return(modifierKeys);
        }