You've already forked godot
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:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user