Skip to content

Commit

Permalink
adding arrow control
Browse files Browse the repository at this point in the history
  • Loading branch information
megadoxs committed Feb 29, 2024
1 parent 0a40dd6 commit 97f8508
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,8 @@ public void keyPressed(KeyEvent e) {

@Override
public void keyReleased(KeyEvent e) {
formatText();
if(!(e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_RIGHT))
formatText();
}
});
}
Expand Down

0 comments on commit 97f8508

Please sign in to comment.