From c18f3d85ce7bd846a5411c2edc304e555e4b1a09 Mon Sep 17 00:00:00 2001 From: lordIcocain <62835225+lordIcocain@users.noreply.github.com> Date: Thu, 21 Nov 2024 20:22:27 +0200 Subject: [PATCH] Save text field by numpad enter (#18) --- .../modularui/widgets/textfield/BaseTextFieldWidget.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/cleanroommc/modularui/widgets/textfield/BaseTextFieldWidget.java b/src/main/java/com/cleanroommc/modularui/widgets/textfield/BaseTextFieldWidget.java index 4ba16129..51619e38 100644 --- a/src/main/java/com/cleanroommc/modularui/widgets/textfield/BaseTextFieldWidget.java +++ b/src/main/java/com/cleanroommc/modularui/widgets/textfield/BaseTextFieldWidget.java @@ -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();