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

            return _keyboardMap;
        }
Example #2
0
        private static KeyboardMap GetOrCreateKeyboardMap()
        {
            var keyboardId = NativeMethods.GetKeyboardLayout(0);

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

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