globalmousekeyhook
globalmousekeyhook copied to clipboard
Combination Equal problem
The origon code as following, which will always get the wrong answer:
protected bool Equals(Combination other)
{
return TriggerKey == other.TriggerKey && Chord.Equals(other.Chord);
}
Add a pair of parentheses should fix:
protected bool Equals(Combination other)
{
return (TriggerKey == other.TriggerKey) && Chord.Equals(other.Chord);
}