/// <summary> /// Initializes a new instance of the <see cref="Gesture"/> class. /// </summary> /// <param name="stroke1">The first keystroke to add.</param> public Gesture(Keystroke stroke1) : this() { _keystrokes.Insert(0, stroke1); }
/// <summary> /// Initializes a new instance of the <see cref="Gesture"/> class. /// </summary> /// <param name="stroke1">The first keystroke to add.</param> /// <param name="stroke2">The second keystroke to add.</param> public Gesture(Keystroke stroke1, Keystroke stroke2) : this(stroke1) { _keystrokes.Insert(0, stroke2); }
/// <summary> /// Adds a keystroke and a link to the collection of shortcuts. /// </summary> /// <param name="key">The keys to press to initiate the navigation.</param> /// <param name="value">The link to navigate to when the keys are pressed.</param> public void Add(Keystroke key, Link value) { Add(new Gesture(key), value); }