Пример #1
0
        private static KeyboardMap GetOrCreateKeyboardMap()
        {
            var keyboardId = NativeMethods.GetKeyboardLayout(0);
            if (_keyboardMap == null || _keyboardMap.KeyboardId != keyboardId)
            {
                _keyboardMap = new KeyboardMap(keyboardId);
            }

            return _keyboardMap;
        }
Пример #2
0
        private static KeyboardMap GetOrCreateKeyboardMap()
        {
            var keyboardId = NativeMethods.GetKeyboardLayout(0);

            if (_keyboardMap == null || _keyboardMap.KeyboardId != keyboardId)
            {
                _keyboardMap = new KeyboardMap(keyboardId);
            }

            return(_keyboardMap);
        }
Пример #3
0
 public static bool IsMappedByChar(VimKey vimKey)
 {
     return(KeyboardMap.IsMappedByCharacter(vimKey));
 }
Пример #4
0
 public static KeyModifiers ConvertToKeyModifiers(ModifierKeys keys)
 {
     return(KeyboardMap.ConvertToKeyModifiers(keys));
 }