Method HasKey
HasKey(KeyGesture?)
public virtual bool HasKey(KeyGesture? gesture)
Parameters
gestureKeyGestureThe key gesture to check. Can be null.
Returns
- bool
true if the specified key gesture has the same Key and Modifiers as this instance; otherwise, false. Returns false if
gestureis null.
HasKey(Key, ModifierKeys)
public virtual bool HasKey(Key key, ModifierKeys modifiers)
Parameters
keyKeymodifiersModifierKeys