field focused but why ?

Mark Schonewille m.schonewille at economy-x-talk.com
Sat Mar 31 16:23:53 EDT 2012


Hi Ludovic,

This is a problem indeed. I wish there were a property to turn off this behavious. It would fix any, many frustrating problems for me and many others.

A workaround is to set the traversalOn of the field to false by default. You could set the traversalOn to true when the user taps on the field. If you also select the text of the field (or before or after the text of the field) then the keyboard will appear. You could automatically set the traversalOn to false again in the exitField or closeField handler or in the closeCard handler for instance.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Get the extIco2Png external for LiveCode here http://qery.us/1w6

On 31 mrt 2012, at 20:13, Ludovic Thébault wrote:

> Hello,
> 
> I've a field which is "focused" always when the card is opened (or after a resumestack when i switch from the script windows for example) and i don't know why !
> I've no script about this. It's not a real focus (no blue border on macos) but there is the "blink cursor" to type in the field.
> 
> It's a problem because this is a stack for iOS and the keyboard always display on the device when this field is focused.
> 
> The field is not at the top level (or at the "bottom" level)
> The field has an openfield script (but without it's the same).
> In the message watcher, just before the openfield message there is a cRevGeneral message.
> In step by step in the debug mode, nothing to catch...
> 
> i put this line :
> focus on nothing
> at the end of the opencard script but no change.
> 
> Any ideas ?
> 
> Thanks !





More information about the use-livecode mailing list