ios auto shift key lock

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

ios auto shift key lock

Post by scotttyang » Sun Jul 10, 2011 8:28 pm

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

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: ios auto shift key lock

Post by Mark » Mon Jul 25, 2011 1:20 am

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: ios auto shift key lock

Post by teacherguy » Mon Jan 30, 2012 9:30 pm

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?

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: ios auto shift key lock

Post by Dixie » Mon Jan 30, 2012 10:57 pm

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
Attachments
UIInputText.livecode.zip
(2.46 KiB) Downloaded 277 times

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: ios auto shift key lock

Post by teacherguy » Tue Jan 31, 2012 2:05 pm

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

Post Reply