Mobile Keyboard

J. Landman Gay jacque at hyperactivesw.com
Mon Jul 6 15:33:07 EDT 2020


I got busy and couldn't get back to this for a while. But the proposed fix isn't really any 
different from the one I've used and others have suggested. You still have to send a message on 
preOpen-anything and then do something that deselects the field, whether it's unsetting/setting 
traversalOn, lockText, or focus.

If you have editable fields on several or all cards, then doing the workaround isn't enough on 
preopenstack. You have to include the kludge on every card.

I wish we had a field property that avoided the issue altogether.

On 6/24/20 1:46 PM, panagiotis merakos via use-livecode wrote:
> By the way, this has worked for me, tested on iOS:
> 
> on preopenstack
>     do_stuff
>     send "hideMobileKeyword" to me in 100 millisec
> end preopenstack
> 
> on hideMobileKeyword
>     focus on nothing
> end hideMobileKeyword
> 
> Kind regards,
> Panos
> --
> 
> On Wed, 24 Jun 2020 at 21:40, J. Landman Gay via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> 
>> We've all had that problem:
>> <https://quality.livecode.com/show_bug.cgi?id=22790>
>>
>> On 6/23/20 6:53 PM, Dan Friedman via use-livecode wrote:
>>> Ralph,
>>>
>>> I had this same issue on a project.  The problem is when the card/stack
>> opens, LiveCode want to activate the first typable field it finds.  If my
>> old memory is correct, what I did was this:
>>>
>>> on preOpenCard
>>>        set the lockText of fld "thisDarnField" to true
>>> end preOpenCard
>>>
>>> on openCard
>>>        send "doUnlockTheField" to this card in 1 tick //don't send this
>> until everything is done loading (you could probably send this in the
>> preOpenCard too)
>>> end openCard
>>>
>>> on doUnlockTheField
>>>        set the lockText of fld "thisDarnField" to false
>>> end doUnlockTheField
>>>
>>>
>>> Hope that helps and I hope it works!   I hope my cobweb-ridden brain
>> remembers this correctly!
>>>
>>> -Dan


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list