private static KeyboardMap GetOrCreateKeyboardMap() { var keyboardId = NativeMethods.GetKeyboardLayout(0); if (_keyboardMap == null || _keyboardMap.KeyboardId != keyboardId) { _keyboardMap = new KeyboardMap(keyboardId); } return _keyboardMap; }
private static KeyboardMap GetOrCreateKeyboardMap() { var keyboardId = NativeMethods.GetKeyboardLayout(0); if (_keyboardMap == null || _keyboardMap.KeyboardId != keyboardId) { _keyboardMap = new KeyboardMap(keyboardId); } return(_keyboardMap); }
public static bool IsMappedByChar(VimKey vimKey) { return(KeyboardMap.IsMappedByCharacter(vimKey)); }
public static KeyModifiers ConvertToKeyModifiers(ModifierKeys keys) { return(KeyboardMap.ConvertToKeyModifiers(keys)); }