1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #105301 from syntaxerror247/fix-decimal-keyboard

Android: Fix decimal keyboard
This commit is contained in:
Thaddeus Crews
2025-04-15 12:28:46 -05:00

View File

@@ -173,7 +173,7 @@ public class GodotEditText extends EditText {
if (!TextUtils.isEmpty(acceptCharacters)) { if (!TextUtils.isEmpty(acceptCharacters)) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
edit.setKeyListener(DigitsKeyListener.getInstance(Locale.getDefault())); edit.setKeyListener(DigitsKeyListener.getInstance(Locale.getDefault(), true, true));
} else { } else {
edit.setKeyListener(DigitsKeyListener.getInstance(acceptCharacters)); edit.setKeyListener(DigitsKeyListener.getInstance(acceptCharacters));
} }