Skip to content

Commit

Permalink
Save text field by numpad enter (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
lordIcocain authored Nov 21, 2024
1 parent a65d2ec commit 273abd1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ public boolean onMouseScroll(int direction) {
public boolean onKeyPressed(char character, int keyCode) {
if (!isFocused()) return false;
switch (keyCode) {
case Keyboard.KEY_NUMPADENTER:
case Keyboard.KEY_RETURN:
if (getMaxLines() > 1) {
handler.newLine();
Expand Down

0 comments on commit 273abd1

Please sign in to comment.