You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fixed LineEdit virtual keyboard inputs on Android
Changed the condition to add a length filter to make it consistent with the documentation (0 means no character limit). Otherwise the default value in LineEdit causes the virtual keyboard to be non-fonctional on Android.
This commit is contained in:
@@ -123,7 +123,7 @@ public class GodotEditText extends EditText {
|
||||
}
|
||||
|
||||
private void setMaxInputLength(EditText p_edit_text, int p_max_input_length) {
|
||||
if (p_max_input_length >= 0) {
|
||||
if (p_max_input_length > 0) {
|
||||
InputFilter[] filters = new InputFilter[1];
|
||||
filters[0] = new InputFilter.LengthFilter(p_max_input_length);
|
||||
p_edit_text.setFilters(filters);
|
||||
|
||||
Reference in New Issue
Block a user