Game Development Community

iPhone OS Keyboard, Unable to write @

by Edinson Mejia · in iTorque 2D · 06/03/2010 (4:03 pm) · 3 replies

I'm not really using iT2D, I'm using iT3D but both products share iphone os funtionality...

Maybe you have the same problem, I have an input text that pop up the keyboard, this input is to ask users their Email, but when you tap the "@" character this not appear on the text input... and there is no way to write an email adress without the @..

There is something i'm missing?

Thanks guys.

#1
06/03/2010 (7:05 pm)
The characters you are allowed to type are hardcoded in iPhoneTextEntryController

Look for this:
#define LEGAL @"1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz "

It's also hardcoded to a max length of 15 characters, something you may also want to change.
#2
06/04/2010 (6:50 am)
Thanks Shawn, this is what I was looking for.

Btw, this is something really basic and must be accesible in scripts or datablocks when you create a input... sad to see this hard coding for this kind of things.
#3
06/04/2010 (8:55 am)
Don't worry. Sven is working on cleaning this up.