Always show quantity text box (#150)

This commit is contained in:
D-Cysteine authored and GitHub committed 2021-08-14 21:42:11 +02:00
1 parent f8d492e5f5
commit a016795056
5 files changed
+12 -17

No files matched your search

+2 -1
View File
@@ -79,6 +79,7 @@ public abstract class TextField extends Widget
if (!focused())
return false;
String oldText = text();
boolean handled = field.textboxKeyTyped(keyChar, keyID);
if(!handled) {
if (keyID == Keyboard.KEY_RETURN || keyID == Keyboard.KEY_NUMPADENTER || keyID == Keyboard.KEY_ESCAPE) {
@@ -88,7 +89,7 @@ public abstract class TextField extends Widget
}
if(handled) {
onTextChange(text());
onTextChange(oldText);
}
return handled;