Skip to content

Commit

Permalink
Save text field by numpad enter (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
lordIcocain authored Nov 21, 2024
1 parent 29f75f5 commit c18f3d8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public void onMouseDrag(int mouseButton, long timeSinceClick) {
return Result.IGNORE;
}
switch (keyCode) {
case Keyboard.KEY_NUMPADENTER:
case Keyboard.KEY_RETURN:
if (getMaxLines() > 1) {
this.handler.newLine();
Expand Down

0 comments on commit c18f3d8

Please sign in to comment.