Skip to content

Commit

Permalink
Fixed regression in text editing
Browse files Browse the repository at this point in the history
This was caused by cb2244b
  • Loading branch information
shai-almog authored Mar 7, 2024
1 parent 5910e84 commit 4bdbf3d
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,16 @@ public boolean onKeyUpDown(boolean down, int keyCode, KeyEvent event) {
case KeyEvent.KEYCODE_SYM:
return false;
case KeyEvent.KEYCODE_ENTER:
if (down) {
Display.getInstance().keyPressed(keyCode);
} else {
Display.getInstance().keyReleased(keyCode);
if(Display.getInstance().getProperty("sendEnterKey", "false").equals("true")) {
if (down) {
Display.getInstance().keyPressed(keyCode);
} else {
Display.getInstance().keyReleased(keyCode);
}
return false;
}
return false;
break;

default:
}

Expand Down

0 comments on commit 4bdbf3d

Please sign in to comment.