Ejemplo n.º 1
0
        public bool IsStatisfiedBy(Chord candidate)
        {
            var chord = _chordBulder.Build();

            bool isSatisfied = true;
            isSatisfied &= candidate.ActionKey == chord.ActionKey;
            isSatisfied &= candidate.AltKeyState == chord.AltKeyState;
            isSatisfied &= candidate.CtrlKeyState == chord.CtrlKeyState;
            isSatisfied &= candidate.ShiftKeyState == chord.ShiftKeyState;
            return isSatisfied;
        }
Ejemplo n.º 2
0
 public KeyboardEventArgs(int actionKey, IDictionary<VirtualKeyCode, KeyState> modifierKeyState)
 {
     _chord = new Chord((VirtualKeyCode)actionKey, modifierKeyState);
 }