Skip to content

Commit

Permalink
treat 0ms chatter threshold as always allowed, for #6
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 1, 2020
1 parent 965c3f6 commit 18c18c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KeyboardChatterBlocker/KeyBlocker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public bool AllowKeyDown(Keys key)
return true;
}
uint maxTime = KeysToChatterTime[key] ?? GlobalChatterTimeLimit;
if (timeNow > timeLast + maxTime) // Time past the chatter limit = enough delay passed, allow it.
if (timeNow >= timeLast + maxTime) // Time past the chatter limit = enough delay passed, allow it.
{
return true;
}
Expand Down

0 comments on commit 18c18c4

Please sign in to comment.