Page 1 of 1

ios auto shift key lock

Posted: Sun Jul 10, 2011 8:28 pm
by scotttyang
I've noted that the iOS keyboard will automatically set the keyboard to capitalize when entiring text for the first time. How do I turn this auto shift lock off?

Scott

Re: ios auto shift key lock

Posted: Mon Jul 25, 2011 1:20 am
by Mark
Hi Scott,

This is currently impossible with standard LiveCode fields. However, you have two options.

You can use the toLower function after the user has entered the text:

Code: Select all

put toLower(fld x) into fld x
or you can use a UITextField, which has am autoCapitalization property. If you set this property to false, the first character won't be capitalised automatically.

Kind regards,

Mark

Re: ios auto shift key lock

Posted: Mon Jan 30, 2012 9:30 pm
by teacherguy
I read the lesson on UITextField...my brain hurts. This isn't actually a field, or is it? I saw another post from Dixie saying that it "floats above" LC? Can anyone take a stab at helping me understand this?

Re: ios auto shift key lock

Posted: Mon Jan 30, 2012 10:57 pm
by Dixie
teacherguy..

I have attached a stack that has a UITextField in it. I have commented the script, which is in the card script. The UITextfield is described on page 57 of the iOS release notes.

hope this helps,

Dixie

Re: ios auto shift key lock

Posted: Tue Jan 31, 2012 2:05 pm
by teacherguy
Ah! OK, so let me see if these assertions are correct:

The UITextField is something that exists in iOS, not Livecode
The rectangle graphic is really just for the user, there is no interaction between it and the UITextField