iPad: Can't type text into <input>

2,824 views
Skip to first unread message

mobweb

unread,
Jul 23, 2010, 9:05:28 AM7/23/10
to phonegap
Hello,

I have a strange problem with an application I'm developing for the
iPad. I can select an input (type 'text') just fine, , the keyboard is
faded in, and even the onfocus event fires. But there is no "blinking
line" indicating that I'm typing, and the text that I type doesn't
come up. The value of the input field doesn't change, I checked that
with JavaScript.
It just doesn't seem to process my keystrokes. I checked all relevant
CSS definitions, and everything is ok, even when the fields are
unformated, it doesn't work. :(

Has anyone else experienced this problem before?

Shazron Abdullah

unread,
Jul 23, 2010, 9:28:20 AM7/23/10
to mobweb, phonegap
yeah. u may have "-webkit-user-select: none" in your css somewhere.
turn it back on for input textfields in your css:

input[type='text'], input[type='email'], input[type='search'],
input[type='password'], textarea
{
-webkit-user-select: text;
}

that should do the trick

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

mobweb

unread,
Jul 23, 2010, 9:53:20 AM7/23/10
to phonegap
Thanks Shazron, that's exactly what caused it. :)

On 23 Jul., 15:28, Shazron Abdullah <shazron.abdul...@nitobi.com>
wrote:
Reply all
Reply to author
Forward
0 new messages