number input type in textfield

I use numericField.inputType = “number” because I want the user to be forced to input numbers in a given textfield. But the problem is that the value they need to enter into the formula can include a decimal. The “default” input type doesn’t open to a numbers only screen so I’m thinking it will be a big hassel for the user. Is there a “calculator” input type or something similar to that that opens up to a numbers only screen and includes the use of the decimals? The “number” input type looks very friendly and hassle free to the user and it includes decimals (and parentheses , etc ) on the side of the screen but it will not register a decimal point into the textfield. If there isn’t a “calculator” input type, can I somehow code for the “number” input type to allow the use of decimals?

Here’s the APIs for inputTypes:
http://docs.coronalabs.com/api/type/TextField/inputType.html

As always, thanks in advance! [import]uid: 35535 topic_id: 33192 reply_id: 333192[/import]

anyone? [import]uid: 35535 topic_id: 33192 reply_id: 132264[/import]

With the native keyboard you get what you get. It was not designed for being a calculator. It’s one of the reasons the calculator app doesn’t use the native keyboard.

[import]uid: 19626 topic_id: 33192 reply_id: 132284[/import]

@Rob, with all respect I have to say that Corona Team would get this “kind” of iOS (at least) keyboard type for us surely! It because, look, Appcelerator does get this exactly kind of keyboard (with the using of Comma and decimal point accepted when using the “numbers” keyboard`s type) without doing “so much force” to get this (at least as I see it).

So, it would be nice to hear something from the Corona Labs`s Engineers and so be knowing if we could get easily this kind of keyboard (at least when thinking about iOS).

PS: As Corona`s API is right now I do not see any way to get the decimal point or commas working when thinking about the native iOS keyboard but as @Rob said above, coding your own keyboard would be the way to go at this time.
Rodrigo - @RSCdev
[import]uid: 89165 topic_id: 33192 reply_id: 132287[/import]

Thanks guys! If the Corona engineers could somehow accommodate for this I’m sure a lot more people besides myself will be grateful. If the user needs to input a value of 12.2234 and he can’t do it from a number keypad then I feel like it’s flawed or incomplete. I don’t mean to be a complainer but I’m on the road to publish an app in the next two months but this feels like a major setback. I’m a newbie so designing my very own keyboard sounds too overwhelming for me. My best bet is if someone else already designed a numeric keyboard that I can then implement in my app. [import]uid: 35535 topic_id: 33192 reply_id: 132291[/import]

Here is a list of the available IOS keyboards:

http://zuzara.com/blog/2010/07/01/screenshots-for-uikeyboardtype/

Corona offers:
“default” the default keyboard, supporting general text, numbers and punctuation
“number” a numeric keypad
“phone” a keypad for entering phone numbers
“url” a keyboard for entering website URLs
“email” a keyboard for entering email addresses
UIKeyboardTypeDefault is “default”
UIKeyboardTypeURL is “url”
UIKeyboardTypeNumberPad is “number”
UIKeyboardTypePhonePad is “phone”
UIKeyboardTypeEmailAddress is “email”

What we don’t have is:
UIKeyboardTypeNamePhonePad
UIKeyboardTypeNumbersAndPunctuation
UIKeyboardTypeASCIICapable

The Numbers and Punctuation is a shift state of Default. Try “phone” instead of “number” and see if it has a shift state for punctuation. [import]uid: 19626 topic_id: 33192 reply_id: 132295[/import]

anyone? [import]uid: 35535 topic_id: 33192 reply_id: 132264[/import]

With the native keyboard you get what you get. It was not designed for being a calculator. It’s one of the reasons the calculator app doesn’t use the native keyboard.

[import]uid: 19626 topic_id: 33192 reply_id: 132284[/import]

@Rob, with all respect I have to say that Corona Team would get this “kind” of iOS (at least) keyboard type for us surely! It because, look, Appcelerator does get this exactly kind of keyboard (with the using of Comma and decimal point accepted when using the “numbers” keyboard`s type) without doing “so much force” to get this (at least as I see it).

So, it would be nice to hear something from the Corona Labs`s Engineers and so be knowing if we could get easily this kind of keyboard (at least when thinking about iOS).

PS: As Corona`s API is right now I do not see any way to get the decimal point or commas working when thinking about the native iOS keyboard but as @Rob said above, coding your own keyboard would be the way to go at this time.
Rodrigo - @RSCdev
[import]uid: 89165 topic_id: 33192 reply_id: 132287[/import]

Thanks guys! If the Corona engineers could somehow accommodate for this I’m sure a lot more people besides myself will be grateful. If the user needs to input a value of 12.2234 and he can’t do it from a number keypad then I feel like it’s flawed or incomplete. I don’t mean to be a complainer but I’m on the road to publish an app in the next two months but this feels like a major setback. I’m a newbie so designing my very own keyboard sounds too overwhelming for me. My best bet is if someone else already designed a numeric keyboard that I can then implement in my app. [import]uid: 35535 topic_id: 33192 reply_id: 132291[/import]

Here is a list of the available IOS keyboards:

http://zuzara.com/blog/2010/07/01/screenshots-for-uikeyboardtype/

Corona offers:
“default” the default keyboard, supporting general text, numbers and punctuation
“number” a numeric keypad
“phone” a keypad for entering phone numbers
“url” a keyboard for entering website URLs
“email” a keyboard for entering email addresses
UIKeyboardTypeDefault is “default”
UIKeyboardTypeURL is “url”
UIKeyboardTypeNumberPad is “number”
UIKeyboardTypePhonePad is “phone”
UIKeyboardTypeEmailAddress is “email”

What we don’t have is:
UIKeyboardTypeNamePhonePad
UIKeyboardTypeNumbersAndPunctuation
UIKeyboardTypeASCIICapable

The Numbers and Punctuation is a shift state of Default. Try “phone” instead of “number” and see if it has a shift state for punctuation. [import]uid: 19626 topic_id: 33192 reply_id: 132295[/import]