Core.ExtensionMethods.Is C# (CSharp) Method

Is() public static method

public static Is ( this keyEvent, Key value ) : bool
keyEvent this
value Key
return bool
        public static bool Is(this KeyEventArgs keyEvent, Key value)
        {
            return keyEvent.KeyboardDevice.Modifiers == ModifierKeys.None
                && keyEvent.Key == value;
        }