iOS text field - autoCapitalization does not seem to work

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
stevenchalmers
Posts: 15
Joined: Mon Jul 11, 2011 8:12 pm

iOS text field - autoCapitalization does not seem to work

Post by stevenchalmers » Thu Sep 15, 2011 3:10 am

I have successfully created an iOS text field and am using several settings such as borderStyle and visible but I cannot make "autoCapitalization" have any effect.

See the attached (zipped) LiveCode file.

Here is the card script:


Code: Select all

on closeCard
    iphoneControlDelete "testinput"
end closeCard

-----------------------------------------------------------------

on inputCreate pInput_or_Multiline, pAutoCapitalizationValue
   put "iOS text edit: " & pAutoCapitalizationValue into field "iOS_Label"
   
   # handle the input creation event
   if "testinput" is among the lines of iphoneControls() then
      # ensure that only one native text input is open
      iphoneControlDelete "testinput"
   end if 
   
   iphoneControlCreate pInput_or_Multiline, "testinput"
   
   # set the native text input field to the size and position of the graphic input rectangle
   iphoneControlSet "testinput", "rect", the rect of graphic "InputRect"
   iphoneControlSet "testinput", "visible", true
   iphoneControlSet "testinput", "autoCapitalization", pAutoCapitalizationValue
   iphoneControlSet "testinput", "text", "control replaced."
   
   iphoneControlSet "testinput", "borderStyle", "rounded"
   
   iphoneControlDo "testinput", "focus"
   
end inputCreate
I call inputCreate from 8 different buttons, 4 use "input" for pInput_or_Multiline and 4 use "multiline".
The buttons also exercise the 4 values for autoCapitalization: none, words, sentences and all characters.

Here is an example of one of the button scripts:

Code: Select all

on mouseUp
   inputCreate "multiline", "words"
end mouseUp
Regardless of how I create the iPhone text control the autoCapitalization behavior is the same which I believe is "sentences".


Steven (Colorado, USA)
Attachments
Native_iOS_textEdit.livecode.zip
Attempt to use autoCapitalization
(2.36 KiB) Downloaded 250 times

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: iOS text field - autoCapitalization does not seem to work

Post by Jellicle » Thu Sep 15, 2011 5:09 am

Confirmed. That looks like a bug. Are you able to make a bug report using the quality control centre?

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

stevenchalmers
Posts: 15
Joined: Mon Jul 11, 2011 8:12 pm

Re: iOS text field - autoCapitalization does not seem to work

Post by stevenchalmers » Thu Sep 15, 2011 3:13 pm

Gerry,

I'll do it. Thanks.


Steven

Post Reply