Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
johnburket committed Jul 7, 2011
1 parent 3d060bc commit 979b455
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/cantoinput/gui/CantoInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,7 @@ public void keyPressed(KeyEvent e) {

char c = Character.toLowerCase(e.getKeyChar());

if (c == KeyEvent.VK_BACK_SPACE) {
String s = inputTextField.getText();
if (s != null && ! s.equals("")) {
e.consume();
}
}
else if (c == KeyEvent.VK_ENTER) {
if (c == KeyEvent.VK_BACK_SPACE || c == KeyEvent.VK_ENTER) {
String s = inputTextField.getText();
if (s != null && ! s.equals("")) {
e.consume();
Expand Down

0 comments on commit 979b455

Please sign in to comment.