Skip to content

Commit

Permalink
Update CodenameOneView.java
Browse files Browse the repository at this point in the history
user DB107 made wrong changes, this is correct commit
  • Loading branch information
davideprimasc authored Feb 5, 2024
1 parent 8889bd5 commit 752b7bc
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,12 @@ public boolean onKeyUpDown(boolean down, int keyCode, KeyEvent event) {
case KeyEvent.KEYCODE_SYM:
return false;
case KeyEvent.KEYCODE_ENTER:
Display.getInstance().keyPressed(keyCode);
Display.getInstance().keyReleased(keyCode);
break;
if (down) {
Display.getInstance().keyPressed(keyCode);
} else {
Display.getInstance().keyReleased(keyCode);
}
return false;
default:
}

Expand Down

0 comments on commit 752b7bc

Please sign in to comment.