Graham, Set the traversalon to false in preOpenCard (or better yet, when you build the standalone). et the traversalOn to true in a mouseUp handler and select the text of your field to make the keyboard appear. Still better would be to use native text fields, which would allow you to keep traversalOn false at all times.
-- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com On 2 okt 2012, at 17:00, Graham Samuel wrote: > I'm having trouble running some very simple tests of iOS keyboard input, and > one problem is that I want the iOS keyboard to come up when the user touches > a specific field (or the mouse clicks in the Simulator). These fields are > locked with TraversalOn set to true as is usual for iOS keyboard input. > > This isn't working, no doubt due to some stupidity on my part (I'm sending > another message about this), but while I was testing I found that one of my > fields (field number 1) in my very simple test stack was receiving the focus > as soon as the card was opened when my script wasn't expecting it. I was > surprised after all this time to find the following in the LC documentation: > >> When a card is opened, LiveCode automatically focuses the first object on >> the card that is capable of receiving the keyboard focus. >> > Somehow I never noticed this before. > > I don't like this and would like to stop it, but even when I arrange for the > fields to have their TravesalOn false on loading and only set it on again > during an OpenCard handler, I still get the unwanted focussing. If I leave > the TraversalOns false and don't change them, then the card triggers a > focusIn handler, which is equally unwanted. > > Do I have to live with this or is there a workaround? > > TIA > > Graham _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode