Page 1 of 1

Field with "Focus with Keyboard" checked? - Solved

Posted: Wed Dec 21, 2016 12:26 am
by DR White
How do I get the cursor to leave a field with "Focus with Keyboard" checked, when I click on a button?

(see attached file)

Thanks,

David

Re: Field with "Focus with Keyboard" checked?

Posted: Wed Dec 21, 2016 1:31 am
by Dixie
This works... :-)

Code: Select all

on mouseUp
   click at 0,0
   --set traversalOn of fld "DataEntry" to false
end mouseUp

Re: Field with "Focus with Keyboard" checked?

Posted: Wed Dec 21, 2016 1:42 am
by [-hh]
Yet another option is in the button's script

Code: Select all

 select empty 
If you wish to have a check for exactly "yes" then the field's script could also trigger to loose focus:

Code: Select all

on textchanged
   if me is "yes" then select empty
end textchanged

Re: Field with "Focus with Keyboard" checked?

Posted: Wed Dec 21, 2016 2:55 am
by DR White
Dixie and -hh,

The click at 0,0 works good in the IDE, but not with the IOS simulator.

The select "Empty" works well in both IDE and IOS simulator.

Thanks so much to both of you,

David

Re: Field with "Focus with Keyboard" checked? - Not Yet Solv

Posted: Wed Dec 21, 2016 3:26 am
by DR White
Well........

The "Select Empty" took care of the blinking cursor in the Data box,
but the keyboard on the IOS device still remains.

How do I force the IOS keyboard to shut down?

Thanks,

David

Re: Field with "Focus with Keyboard" checked? - Not Yet Solv

Posted: Wed Dec 21, 2016 3:27 am
by DR White
Well........

The "Select Empty" took care of the blinking cursor in the Data box,
but the keyboard on the IOS device still remains.

I looked in the dictionary under keyboard, but did not find anything that would control the IOS keyboard.

How do I force the IOS keyboard to shut down?

Thanks,

David

Re: Field with "Focus with Keyboard" checked? - Not Yet Solv

Posted: Wed Dec 21, 2016 4:45 am
by [-hh]
David, John (dixie) answered this already:

http://forums.livecode.com/viewtopic.ph ... 514#p48573

Re: Field with "Focus with Keyboard" checked? - Not Yet Solv

Posted: Wed Dec 21, 2016 12:55 pm
by DR White
Thanks so much,

David