Skip to content

Commit b1eba09

Browse files
miozunelc-1337
andauthored
Save text field by numpad enter (#18) (#107)
Co-authored-by: lordIcocain <[email protected]>
1 parent 6885091 commit b1eba09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/cleanroommc/modularui/widgets/textfield/BaseTextFieldWidget.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ public void onMouseDrag(int mouseButton, long timeSinceClick) {
175175
return Result.IGNORE;
176176
}
177177
switch (keyCode) {
178+
case Keyboard.KEY_NUMPADENTER:
178179
case Keyboard.KEY_RETURN:
179180
if (getMaxLines() > 1) {
180181
this.handler.newLine();

0 commit comments

Comments
 (0)