Strange keyboard behaviour on text field

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

Post Reply
SteveHanlan
Posts: 80
Joined: Fri Jul 09, 2010 6:28 pm

Strange keyboard behaviour on text field

Post by SteveHanlan » Thu Sep 29, 2011 3:23 am

I have four cards that include a text field for data input, all are driven from a button on the card.
Three work fine, but the fourth does not hold the shift status on a new word.
i.e.
Normal - touch xyx space shift, (shift stays highlighted and next char is upper case)
Strange - touch xyx space shift, (shift not highlighted, but if I hold shift and press another key, just like desktop, I get the upper case letter)

I didn't know that the iOS field allowed shift to be used like a normal keyboard.

The button code is the same in all cases ...

Code: Select all

global cMemo
global gInputA

on mouseUp
   if the environment is mobile then
      iphoneControlSet gInputA["wdata"], "text",cMemo
      iphoneControlSet gInputA["wdata"], "visible", true
      iphoneControlSet gInputA["wdata"], "keyboardtype", "default"
   else
      put cMemo into field "wdata2"
      set the visible of field "wdata2" to true
   end if
   if the environment is mobile then iphoneControlDo ginputA["wdata"],"focus" else focus on field "wdata2"
end mouseUp
and the iOs control has all the same settings in MobGUI

This has the code so that it works on the desktop too.

Anyone ever come across this behavior?

cheers

Steve

SteveHanlan
Posts: 80
Joined: Fri Jul 09, 2010 6:28 pm

Re: Strange keyboard behaviour on text field

Post by SteveHanlan » Wed Oct 05, 2011 4:46 pm

I rebuilt my control from scratch and now it works normally - sheesh!

Steve

Post Reply

Return to “MobGUI”