Input type for keyboard with comma iOS keyboard

I know this is an old question ... but I cannot find the right answer.

I need to call numpad on the iOS device with a comma, the keyboard type is UIKeyboardTypeDecimalPad , you can see it here:

enter image description here

I need to call it using an HTML input element , is this possible?

For reference, here are some old questions without a solution:

question1

question2

question3

EDIT: Nobody seems to understand, the problem is to show this keyboard with an HTML input field , and not with its own code (also, the problem is not a comma or dot ). So the right question should be, is there any html markup that shows this keybaord on iOS?

The project is based on Cordoba.

+5
source share
2 answers

. and are culture specific. If you set the region as Germany from the iphone settings, you can see ',' on a keyboard like UIKeyboardTypeDecimalPad. If you want to show ',' in all regions and languages, you need to add it to the accessory view of the keyboard. Not sure how this will be implemented in your case, but in Xamarin we did this by adding a built-in rendering for the keyboard.

-1
source

If you want the point separator to be replaced by a comma separator for all contexts, I suggest changing the CFBundleLocalizations key in Info*.plist with fr_FR (or any other localization for which the float separator is ``).

For Cordoba, which you seem to be using, I suggest using a custom plugin, see fooobar.com/questions/628850 / ...

-1
source

Source: https://habr.com/ru/post/1263000/


All Articles