Skip to content

Commit

Permalink
fixes keyReleased vs. keyPressed bug in Draw
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-wayne committed Sep 4, 2019
1 parent 7b3073e commit 97bddfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/edu/princeton/cs/algs4/Draw.java
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,7 @@ public void keyReleased(KeyEvent e) {

// notify all listeners
for (DrawListener listener : listeners)
listener.keyPressed(e.getKeyCode());
listener.keyReleased(e.getKeyCode());
}


Expand Down

0 comments on commit 97bddfb

Please sign in to comment.