/// <summary> /// Initializes a new instance of the <strong>ChordModifier</strong> using data /// provided by another instance. /// </summary> public ChordModifier(ChordModifier chordModifier) { this.altModifier = chordModifier.altModifier; this.controlModifier = chordModifier.controlModifier; this.shiftModifier = chordModifier.shiftModifier; }
public static ChordModifier GetModifiers(Keys pressedKey) { return(ChordModifier.GetModifiers(new ChordModifier(), pressedKey)); }
/// <summary> /// Creates new ChordModifier instance based on a Keys input value /// </summary> /// <param name="pressedKey">Keys input value</param> /// <returns>ChordModifier instance</returns> public static ChordModifier GetModifiers(Keys pressedKey) { ChordModifier returnModifier = new ChordModifier(); return(GetModifiers(returnModifier, pressedKey)); }