Hi,
I need to have a 0-9 keypad with a decimal point, It’s important for my loan program.
Are you planing to implement it ?
Best,
Pierre [import]uid: 6666 topic_id: 28044 reply_id: 328044[/import]
Hi,
I need to have a 0-9 keypad with a decimal point, It’s important for my loan program.
Are you planing to implement it ?
Best,
Pierre [import]uid: 6666 topic_id: 28044 reply_id: 328044[/import]
You could make your own “fake” keyboard for this purpose, although it is my understanding that the numerical keyboard included a period/decimal point - is this not the case? [import]uid: 52491 topic_id: 28044 reply_id: 113479[/import]
Hello, thank you for your answer.
I tested with this code on the IOS simulator and on the device and I get a keypad without period/decimal point.
Perhaps I forgot something.
regards
Pierre
[lua]local defaultField
local function textListener( event )
if event.phase == “began” then
print( event.text )
elseif event.phase == “ended” then
elseif event.phase == “ended” or event.phase == “submitted” then
elseif event.phase == “editing” then
print( event.newCharacters )
print( event.oldText )
print( event.startPosition )
print( event.text )
end
end
– Create our Text Field
numericField = native.newTextField( 10, 30, 180, 30 )
numericField.inputType = “number”
numericField.userInput = textListener
numericField:addEventListener( “userInput”, numericField ) [import]uid: 6666 topic_id: 28044 reply_id: 113558[/import]
The standard numberic keyboard does not have a decimal point. I don’t know if corona uses UIKeyboardTypeDecimalPad which was, from my reading, added in iOS 4.1. I suspect not. Now that Corona has dropped support for pre 4.3, I would not expect any issues with them adding it. It looks to be a simple addition, perhaps you can request it be added.
Here is a link to some information on this subject.
http://www.kalekold.net/index.php?post=15 [import]uid: 56820 topic_id: 28044 reply_id: 113559[/import]
Ah I see - yes, on iPad it opens up a the numeric keyboard and on the iPhone brings up a number pad without any symbols.
Will bring this up as a feature request and would encourage you to post on the roadmap also.
In the meantime you could make a keypad yourself that looked the same as the iOS one and had a decimal point if time critical.
Peach [import]uid: 52491 topic_id: 28044 reply_id: 113605[/import]
I can confirm that the number field does not bring up a decimal on an iphone 5 on ios 7 .
Has there been progress from corona?
HI,
Please make sure you are using “decimal” for inputType. I’ve tested this and it works on our devices.
I can confirm that the number field does not bring up a decimal on an iphone 5 on ios 7 .
Has there been progress from corona?
HI,
Please make sure you are using “decimal” for inputType. I’ve tested this and it works on our devices.