Example #1
0
        bool IKeyUtil.TryConvertSpecialToKeyInput(Key key, ModifierKeys modifierKeys, out KeyInput keyInput)
        {
            if (WpfKeyToKeyInputMap.TryGetValue(key, out keyInput))
            {
                var keyModifiers = KeyboardMap.ConvertToKeyModifiers(modifierKeys);
                keyInput = KeyInputUtil.ApplyModifiers(keyInput, keyModifiers);
                return(true);
            }

            keyInput = null;
            return(false);
        }
Example #2
0
 internal static KeyModifiers GetKeyModifiers(ModifierKeys keys)
 {
     return(KeyboardMap.ConvertToKeyModifiers(keys));
 }
Example #3
0
 KeyModifiers IKeyUtil.GetKeyModifiers(ModifierKeys modifierKeys)
 {
     return(KeyboardMap.ConvertToKeyModifiers(modifierKeys));
 }