Page 1 of 1

Keyboard issue.

Posted: Mon Feb 21, 2011 10:37 am
by dburdan
When I call the keyboard to be opened, it is automatically in caps lock mode. Is there any way to turn this off?

Re: Keyboard issue.

Posted: Mon Feb 21, 2011 6:54 pm
by mcgrath3
I use
iphoneSetKeyboardType "alphabet"

it is not initial cap or caps lock when opened fro a field.

NOTE: you have to call this before opening the keyboard in a field. It will not effect the currently displayed keyboard. Just the next one.

Tom

Re: Keyboard issue.

Posted: Mon Feb 21, 2011 7:39 pm
by dburdan
I tried putting that before the field was called but it still opens in CAPS lock mode.

Re: Keyboard issue.

Posted: Mon Feb 21, 2011 7:52 pm
by mcgrath3
Is this in the simulator or on a device?

Re: Keyboard issue.

Posted: Mon Feb 21, 2011 9:53 pm
by dburdan
Both. I have a screen with one text box. When the user clicks it, it opens the keyboard as usual. But the keyboard being opened, starts in all caps. I tried switching the keyboard type but that didn't work.

Re: Keyboard issue.

Posted: Sat Feb 26, 2011 3:02 am
by observ3
Keyboard support is dismally weak right now... Has anyone found a way to handle auto-capitalization after punctuation?

Re: Keyboard issue.

Posted: Sun Jan 22, 2012 3:44 pm
by teacherguy
dburdan wrote:Both. I have a screen with one text box. When the user clicks it, it opens the keyboard as usual. But the keyboard being opened, starts in all caps. I tried switching the keyboard type but that didn't work.
Yes, and notice too that the shift key is not solid blue (which it would be for caps lock) but rather is outlined blue, which should then change after typing the first character. But it does stay locked. I notice that coming back into the field later...the keyboard behaves normally.

Re: Keyboard issue.

Posted: Sun Jan 22, 2012 8:58 pm
by teacherguy
OK here is my workaround for getting rid of the shift key being locked on the first appearance of the keyboard. I created a custom property for the field called clearShift, then I put this handler in the card script:

Code: Select all

on keyboardActivated
   if the clearShift of field "My Field" is false then
      focus on nothing
      set the clearShift of field "My Field" to true
      focus on field "My Field"
      exit keyboardActivated
   else
      pass keyboardActivated
   end if
end keyboardActivated

Re: Keyboard issue.

Posted: Tue Apr 03, 2012 7:11 pm
by shankez
teacherguy wrote:OK here is my workaround for getting rid of the shift key being locked on the first appearance of the keyboard. I created a custom property for the field called clearShift, then I put this handler in the card script:

Code: Select all

on keyboardActivated
   if the clearShift of field "My Field" is false then
      focus on nothing
      set the clearShift of field "My Field" to true
      focus on field "My Field"
      exit keyboardActivated
   else
      pass keyboardActivated
   end if
end keyboardActivated
Thank you very much for your code! :)