Skip to content

Commit

Permalink
Sync key listener
Browse files Browse the repository at this point in the history
  • Loading branch information
crschnick committed Jul 18, 2024
1 parent 5d92d29 commit 151c6df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void nativeKeyPressed(NativeKeyEvent e) {
}


private boolean canPass(int action) {
private synchronized boolean canPass(int action) {
if (lastCheck == 0 || action != lastAction) {
lastAction = action;
lastCheck = System.currentTimeMillis();
Expand Down

0 comments on commit 151c6df

Please sign in to comment.