Skip to content

Interactivity / KeyComboGesture

Namespace: Nodify.Interactivity

Assembly: Nodify

Inheritance: ObjectInputGestureKeyGestureKeyComboGesture

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

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.

public KeyComboGesture(Key triggerKey, Key comboKey, ModifierKeys modifiers);

Parameters

triggerKey Key

comboKey Key

modifiers ModifierKeys

KeyComboGesture(Key, Key, ModifierKeys, String)

Section titled “KeyComboGesture(Key, Key, ModifierKeys, String)”
public KeyComboGesture(Key triggerKey, Key comboKey, ModifierKeys modifiers, string displayString);

Parameters

triggerKey Key

comboKey Key

modifiers ModifierKeys

displayString String

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

Boolean

Gets or sets the key that must be pressed first to activate this combo gesture.

public Key TriggerKey { get; set; }

Property Value

Key

public override bool Matches(object targetElement, InputEventArgs inputEventArgs);

Parameters

targetElement Object

inputEventArgs InputEventArgs

Returns

Boolean