3.4 KiB
KeyComboGesture Class
Namespace: Nodify.Interactivity
Assembly: Nodify
Inheritance: Object → InputGesture → KeyGesture → KeyComboGesture
Represents a keyboard gesture that requires a trigger key to be held down before pressing a combo key. For example, press and hold Space, then press Left arrow.
public class KeyComboGesture : KeyGesture
Constructors
KeyComboGesture(Key, Key)
Initializes a new instance of the KeyComboGesture class with the specified trigger key, combo key, modifiers, and display string.
public KeyComboGesture(Key triggerKey, Key comboKey);
Parameters
triggerKey Key: The key that must be pressed first.
comboKey Key: The combo key pressed while the trigger key is held.
KeyComboGesture(Key, Key, ModifierKeys)
public KeyComboGesture(Key triggerKey, Key comboKey, ModifierKeys modifiers);
Parameters
triggerKey Key
comboKey Key
modifiers ModifierKeys
KeyComboGesture(Key, Key, ModifierKeys, String)
public KeyComboGesture(Key triggerKey, Key comboKey, ModifierKeys modifiers, string displayString);
Parameters
triggerKey Key
comboKey Key
modifiers ModifierKeys
displayString String
Properties
AllowRepeatingComboKey
Gets or sets a value indicating whether the combo key can be repeatedly triggered without releasing the trigger key.
public bool AllowRepeatingComboKey { get; set; }
Property Value
TriggerKey
Gets or sets the key that must be pressed first to activate this combo gesture.
public Key TriggerKey { get; set; }
Property Value
Methods
Matches(Object, InputEventArgs)
public override bool Matches(object targetElement, InputEventArgs inputEventArgs);
Parameters
targetElement Object
inputEventArgs InputEventArgs
Returns