Some Android devices such as Samsung and Huawei do not have localized decimal keyboards. They only support a decimal point '.' which makes it impossible to enter a decimal separator into a TextField for locales that use a decimal comma ',' character.
This never happens in the Android emulator or Google's own devices.
This is actually a bug with some 3rd party devices, not in Titanium. We can't control the localization of the virtual keyboard. But that said, we need a work-around of some kind.
Steps to reproduce:
- Acquire a Samsung or Huawei Android device.
- Go to: Settings -> System -> Languages & Input -> Languages
- Select a European language such as French or German.
- Build and run the below code.
- Tap on the TextField.
- Notice keyboard has a "," button but not a "." button. (We can't fix this.)
- Attempt to enter a decimal value such as 1,5 or 1.5.
- Notice you can't enter a decimal separator. (This is only an issue on some devices.)
For locales that do not use a decimal point, we should automatically substitute the "." character as it's typed in. This would also mean we won't allow user's to enter a thousands separator for European locales, but unfortunately there doesn't appear to be any other solution to this issue.